/rails-api-boiler-plate

Boiler Plate of Rails API Project

Primary LanguageRuby

Rails API Boiler Plate

Instalation Step

  1. Clone this repository
  2. Run bundle install
  3. Configure your database by copying config/database.yml.example into config/database.yml. Make sure postgresql running on port 5432 with username postgres and password postgres
  4. Run rails db:create to create database on postgresql
  5. Run rails db:migrate to migrate the database
  6. Run rails db:seed to run database seeds

Running with Docker and Docker Compose

  1. Clone this repository
  2. Run docker-compose run web bundle install
  3. Configure your database by copying config/database.yml.example into config/database.yml. Make sure postgresql running on port 5432 with username postgres and password secret
  4. Run docker-compose up
  5. Run docker-compose run web rails db:migrate to migrate the database
  6. Run docker-compose run web rails db:seed to run database seeds