grapple
A sample API and frontend using Grape and Knockout.js.
Setup
- Clone and
cd
into the repo. - Install dependencies:
$ bundle install
- Setup and migrate the database:
$ bundle exec rake db:setup
- Seed the database:
$ bundle exec rake db:seed
- Boot the app:
$ bundle exec rackup
- Visit http://localhost:9292 for the frontend interface.
Tests
- Setup the test database:
$ RACK_ENV=test rake db:setup
- Run the tests with:
$ bundle exec rake test