- Ruby 3.1.1
- Rails 7.0.2
- Postgres 14
- Node js and Yarn
- Create repo by clicking on use this template.
- Clone new repo.
- Install bundler within
gem install bundler
. - Install dependencies using bundler
bundler install
. - Rename project using this command
rails g rename:into New-Name
- Create Database and migrate
rails db:create db:migrate
- Create Credentials file alongside master key file
EDITOR="nano" rails credentials:edit
- Start Server
bin/dev
and visithttp://localhost:3000
You should use pessimize to add the right version for new gems.
$ gem install pessimize
Then, when adding a new gem to the Gemfile:
$ bundle install
$ pessimize --no-backup
After adding new migration run this command to annotate models
$ annotate --models
We use Standard for Ruby Style Before committing code, you should run this command to see any issues
$ bundle exec standardrb
You can run this command to auto fix those issues
$ bundle exec standardrb --fix
We are using Rails way to add critical credentials And for testing we are using Heroku and SERVER_URL ENV variable.