sairam / saltside_sanctuary

A pre-screen interview question that was required to be solved by SaltSide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependencies

  • Tested on Ruby 2.2.4 and 2.2.1
  • Tested on Mac OS X

Building

  • gem install bundler
  • bundle install

start server (requires mongodb)

  • rails s # -p $PORT # runs on port 3000 by default

Run tests (requires mongodb)

  • rspec -f d spec/controllers spec/models

Testing from CLI

curl -H "Content-Type: application/json" -X POST -d @db/samples/create_bird.json http://localhost:3000/birds.json

endpoints that can be hit

  • GET http://localhost:3000/birds
  • POST http://localhost:3000/birds
  • GET http://localhost:3000/birds/57692020c5231b94f8d78b36
  • DELETE http://localhost:3000/birds/57692020c5231b94f8d78b36

About

A pre-screen interview question that was required to be solved by SaltSide


Languages

Language:Ruby 85.3%Language:HTML 11.5%Language:CSS 1.6%Language:JavaScript 1.6%