Skip to content
/ blogger Public

Part of the rails_template project. Desired Rails application state after a new generation process from the template.

Notifications You must be signed in to change notification settings

jrcech/blogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blogger – Simple Blogging Application

Checkout DEMO application.

Login with:

Part of the rails_template project. Desired Rails application state after a new generation process from the template.

How to run this application

In order to run this application locally, you need to be using an Unix-like operating system. If you are using Windows, you can use WSL to run this application.

There are two ways to run this application:

  1. Setting up the development environment
  2. Using Docker

Setting up the development environment

It is recommended to use ASDF Version Manager to automatically install required tools. This tool manages multiple runtime versions with a single CLI tool with support for Ruby, Node.js, Postgres, Yarn and much more. It is like nvm, pyenv, rbenv, etc. but in a single tool managed with plugins. For OS specific installation instructions please visit the ASDF Getting Started.

Or you can install required development tools yourself, see .tool-versions file for required versions.

Install required tools as ASDF plugins

If you don't have ASDF plugins installed, do so with the following commands:

asdf plugin add bun
asdf plugin add postgres
asdf plugin add ruby

Required versions are defined in .tool-versions file:

bun 1.1.8
postgres 16.3
ruby 3.3.1

To install required versions run in the project root directory:

asdf install

Install Application dependencies

After installing required tools, you can install application dependencies.

Install Ruby gems with Bundler:

bundle install

Install Node.js packages with Bun:

bun install

Setup the database

Start the PostgreSQL server:

pg_ctl start

Create the database, load the schema, and initialize it with seed data:

rails db:setup

Start the application

Start the Rails application in development environment:

./bin/dev

Using Docker

If you prefer to use Docker, you can build and run the application with Docker Compose.

Build the Docker image

docker compose build

Start the application

docker compose up

Setup the database

docker-compose run web rails db:setup

Deploy application to staging environment

Generate SSH key pair for GitHub:

ssh-keygen -t ed25519 -a 100 -f path/to/keyfile

About

Part of the rails_template project. Desired Rails application state after a new generation process from the template.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published