This project was made to understand and practice the structure of an API developed using Ruby on Rails.
The project is using the gem active_model_serializers adapting protocols to comply with the specifications of jsonapi.org.
To configure the enviroment run de comand:
rails db:create db:migrate db:seed
and the script will drop the database if it has already been created, create the database, run migrations and populate tables
Just run the comand:
docker-compose up
Start docker
docker-compose run web bash
Then configure the test enviroment runing the comand:
rails db:migrate RAILS_ENV=test
And run the tests with:
rspec