Skip to content

lxnewayfarer/rails_template

Repository files navigation

Ruby on Rails template project

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.

  1. Set up your project database connection in config/database.yml
  2. Check migrate/ folder and create base migrations

Then you can start your project:

  1. bundle install Install gems
  2. docker-compose up Run Docker containers
  3. rails db:create Create database
  4. rails db:migrate Run migrations
  5. rails s Start Rails app

And also check rubocop and write tests:

  1. bundle exec rubocop -a to run Rubocop
  2. foreman run --env .env.test bundle exec rspec -f doc to run RSpec tests (check /spec folder)

About

Template Rails + Grape, Postgres, RSpec project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published