This is the code that powers the API of the upcoming goodbre.ws rewrite.
- Ruby 2.1.0 with bundler installed
- PostgreSQL
- Redis
To set the API up for local development, first do the following:
bundle install
bundle exec rake db:setup
Then, to start the server:
bundle exec rackup
Try some requests:
curl --include '0.0.0.0:9292/breweries/'
To run all of the tests (note that the API is automatically tested via Travis CI):
rspec # Optionally specify a path: spec/models/