This is Rails template project with basic docker-compose Postgres container for development. Including User Devise model with sign in/sign up Grape API generating JWT, with user authentication by this JWT (check app/modules/authenticate
folder). Also providing default Github CI including Rubocop and RSpec checks.
- Set up your project database connection in
config/database.yml
- Check
migrate/
folder and create base migrations
Then you can start your project:
bundle install
Install gemsdocker-compose up
Run Docker containersrails db:create
Create databaserails db:migrate
Run migrationsrails s
Start Rails app
And also check rubocop and write tests:
bundle exec rubocop -a
to run Rubocopforeman run --env .env.test bundle exec rspec -f doc
to run RSpec tests (check/spec
folder)