- Install httpie
- Install node.js
- Paste those files into some folder
- Install CoffeeScript into node with
npm install coffee - Run the server
coffee server.coffee
With httpie:
http localhost:3000/authors: Will give an empty listhttp POST localhost:3000/authors name=Shakespeare: Will create an author and will return it in JSONhttp localhost:3000/authors: again, this will return a list containing "Shakespeare" as an authorhttp localhost:3000/authors/<_id>: Replace<_id>with the long alphanumerical"_id"in the previous request, will return the record for Shakespeare.
Voilá