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

Dependents (2)

Package Sidebar

Install

npm i hotcoffee

Weekly Downloads

30

Version

0.6.3

License

MIT

Last publish

Collaborators

  • kr1sp1n