hotcoffee
v0.6.3
Published
Brew you some hot micro servers
Downloads
29
Readme
hotcoffee
REST API that saves everything you can imagine. You just think about a collection name and add an item to it by sending a POST request with body data. Then you can manipulate items of a collection.
You need Node.js to run the server locally. You can install it via nvm.
Install
git clone git://github.com/kr1sp1n/hotcoffee.git
cd hotcoffee
make install
Run Tests
make test
Start the example server
./node_modules/.bin/coffee example/simple_server.coffee
Usage
GET a list of all collections
curl http://localhost:1337/
Response would be an empty JSON array as long as you never added an item to any collection.
[]
POST a new item to a collection
curl -X POST -d "name=Donatello&color=purple" http://localhost:1337/turtles
Response
{
"name": "Donatello",
"color": "purple"
}