Miss any of our Open RFC calls?Watch the recordings here! »

hotcoffee

0.6.3 • Public • Published

hotcoffee

Build Status Coverage Status Download Status Dependency Status

Flattr this git repo

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"
}

Install

npm i hotcoffee

DownloadsWeekly Downloads

0

Version

0.6.3

License

MIT

Last publish

Collaborators

  • avatar