Implementing JSON API according to standards:
Built the JSON API with Rails 5 following this blog post:
http://www.thegreatcodeadventure.com/building-a-super-simple-rails-api-json-api-edition-2/
Live on Heroku at:
https://cbohara-catbook-api.herokuapp.com/api/v1/cats.json
Rails 5.0.0.1 JSON API
Docker
-
build docker image based on Dockerfile
- docker-compose build
-
spin up and connect containers as directed in docker-compose.yml
- docker-compose up -d
-
run standard rails commands
-
docker-compose run app bundle install
-
docker-compose run app rails db:migrate
-
docker-compose run app rails db:setup
-