Checkout DEMO application.
Login with:
- email:
[email protected]
- password:
123456789
Part of the rails_template project. Desired Rails application state after a new generation process from the template.
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:
- Setting up the development environment
- Using Docker
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.
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
After installing required tools, you can install application dependencies.
Install Ruby gems with Bundler:
bundle install
Install Node.js packages with Bun:
bun install
Start the PostgreSQL server:
pg_ctl start
Create the database, load the schema, and initialize it with seed data:
rails db:setup
Start the Rails application in development environment:
./bin/dev
If you prefer to use Docker, you can build and run the application with Docker Compose.
docker compose build
docker compose up
docker-compose run web rails db:setup
Generate SSH key pair for GitHub:
ssh-keygen -t ed25519 -a 100 -f path/to/keyfile