This is a ruby on rails app that creates a system of story management.
Docker is required.
-
Clone this repository (you need git installed):
git clone git@github.com:danielscosta/story_management.git
-
Setup database:
docker-compose run app bundle exec rake db:setup
-
Migrate database:
docker-compose run app bundle exec rails db:migrate
docker-compose run test bundle exec rails db:migrate
-
In this repository create and run the containers:
docker-compose up app
It will create a postgres container database and ruby container for install the ruby dependencies and start rails server on port 3000.
-
Get a bash into app container, run:
docker-compose run app bash
-
Tests are stored in the
spec
folder. To run them execute:docker-compose up test