Ruby Version: 2.6.5 Rails Version: 6.0.2
Gem pg is already installed and configured. Click here to install postgresql. Add postgresql username and password to database.yml config file and run the following command.
rake db:create db:migrate db:seed
For APIs, Graphql and JWT is configured. With graphql, graphql-errors
is also configured to handle errors.
To have role based access to application; action-policy and action-policy-graphql is configured. Define policies in app/policies
folder as per requirements.
To log the server errors for staging and production environment; sentry is configured. Get sentry dns credentials; click here. Now, edit credentials.yml
with using master.key
to add sentry_dsn
key to each staging
and production
environment.
Mina is already configured for deployment of application to Production, Staging, etc. environments. Add server and repository configuration to staging.rb
and production.rb
resides in config/deploy
directory. After this, you are all set to deploy app with mina YOUR_ENV deploy
command.
Robocop used for code quality management. Update rubocop configuration in .rubocop.yml
if required.
Sidekiq used to have background job in application.
Localization comes with rails by default.
To test application RSpec is configured with FactoryBot and Shoulda-Matcher.