hotcoffee
Brew you some hot micro servers
Last updated 5 years ago by kr1sp1n .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hotcoffee 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.6.3                                ...           latest (5 years ago)

18 Versions

  • 0.6.3                                ...           5 years ago
  • 0.6.2                                ...           5 years ago
  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.1                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.4                                ...           5 years ago
  • 0.2.3                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 18
Dependencies (2)
Dev Dependencies (8)

Copyright 2014 - 2017 © taobao.org |