- Ruby 3.0
- Use the template and make sure to check "Include all branches"
- Clone the repository to the local machine
- Initialize git-flow in all local machines with
git flow init
- Set production branch:
main
- Set development branch:
development
- Set the rest of the options as defaults
- Initialize a new feature branch. You can call it
setup-from-template
- Set production branch:
- Run
bundle update
to install the latest version of the gems for the project - Reinstall and setup the required packages by running
bundle exec bin/setup
- Generate the Rails credentials for the project:
EDITOR=true bundle exec rails credentials:edit
- Change the name of the project. Use the commit 324932f as reference
- Execute the Rubocop command, so the linter's workflow won't fail:
bundle exec rubocop -A
- Add and commit all your changes
- Finalize your feature branch and merge your changes
- Everything should be ready to start working!
Note: all packages already set up, this includes: Devise, RSpec, Capybara, Factory Bot, Rubocop, GitHub Workflow, and it's ready to deploy to Heroku. Start to work with the models, views, and controllers. Note that you'll need to use the correct generators (i.e.
bundle exec rails generate devise User
).Note: The development/test version will use SQLite3, but the deployed version will use PostgreSQL. The bundle command will install the
pg
gem anyway, and if it fails to set it up, install PostgreSQL even if never used or configured.
- Change the hostname for devise when deploying to Heroku, check the files inside
config/environments