API used by https://github.com/budiharta21/cat-a-log
- Clone this repository
- Run
bundle install
- Setup your
database.yml
, you can usedatabase.yml.example
- Run
rails db:create
to create database on postgresql - Run
rails db:migrate
to migrate all table - Run
rails db:seed
to run all data seed
- Clone this repository
- Run
docker-compose up
- Configure your database by copying
config/database.yml.example
intoconfig/database.yml
. Make sure postgresql running on port 5432 with usernamepostgres
and passwordsecret
- Run
docker-compose exec web rails db:migrate
to migrate the database - Run
docker-compose exec web rails db:seed
to run database seeds