Rails 6 template
GitHub Actions to deploy the Rails application
- Ruby (version as specified in
- Rbenv is recommended to manage your Ruby version
- PostgreSQL 12.x
- Redis 5.x
git clone firstname.lastname@example.org:alex-benoit/rails-template.git cd rails-template bin/setup
Run the app
To run the app locally you may need to ask a colleague for the secrets to complete the following file:
Once you have this, start-up the app by running:
bundle exec rails s
Code structure & patterns
API operations with complex business-logic are implemented with
simple API operations (e.g. 3-5 lines of code) remain inline within a controller.
Complex API responses are generated with
These are typically plain Ruby classes which 'render' hashes or arrays, which the Controller marshals to JSON.