Creating a new app from Jumpstart Pro Rails Template:
take my_app
git init
git remote add upstream [email protected]:jumpstart-pro/jumpstart-pro-rails.git
git fetch --all
git checkout -b main
git reset --hard upstream/main
git remote add origin [email protected]:my_org/my_app.git
git push -u origin main
Install dependencies from Brewfile
:
brew bundle install --no-upgrade
Start the database servers:
brew services start postgresql
brew services start redis
bin/rails g scaffold books title:string author:string publication_year:integer
bin/rails db:migrate
- Add the gem to
Gemfile
. - Run
bundle install
. - Commit
Gemfile
andGemfile.lock
. - Require the gem e.g. in
config/application.rb
. - Configure the gem.
- Migrate the database.
- Restart the server.
- Run tests.
standardrb --fix
rails db:seed