Ruby on Rails boilerplate configured with the most useful gems and best practices. It comes with the latest Ruby (v3.1.3) and Rails(v7.0.2) versions as of September 2022.
- User Authentication with Routes using JWT tokens (devise & devise-jwt).
- Dockerfiles & Docker-Compose files for both local & production environments
- Configured Database - Postgres
- Parameter validations using rails-param
- bullet gem for N+1 query finder
- Case conversion of incoming & outgoing data using oj & olive_branch
- dot-env gem for loading Environment files
- whenever gem for Cron Jobs
- activerecord-import for bulk save & update queries
- This repo also contains few best practices to follow.
Refer to the following article to understand the best practices in detail: Ruby on Rails - Best Practices Every Developer Should Know
- Ruby - v3.1.2
- Docker - (Optional, but good to have)
docker compose up -d
Rails application will be running at localhost:8085
Configure your local Postgres instance and make changes accordingly in the .env.development
file
DB_HOST=...
DB_USER=...
DB_PASSWORD=...
DB_PORT=...
Then run the following command:
rails s
Rails application will be running at localhost:8080