0.0.0 • Published 10 years ago
jitserv v0.0.0
Jitter
Jitter is a just-in-time HTTP server for simple dictionary resources.
In server.coffee
:
server = require "jitter"
server 1337
Now you can use it:
curl -XPUT localhost:1337/weather/santa-monica -d'70 degrees and sunny'
curl localhost:1337/weather/santa-monica
70 degrees and sunny
Status
Jitter is still under development.
Interface
GET {/collection}
- Get all the items in the collectionGET {/collection}{/key}
- Get the item in the collection with the given keyPUT {/collection}{/key}
- Update the item in the collection with the given keyDELETE {/collection}{/key}
- Delete the item in the collection with the given keyPOST {/collection}
- Create an item in the collection using a random key
Installation
- Clone this repo
npm install
If you want to run the tests, you'll also have to clone the Shred and Amen repos and npm link
to them.
0.0.0
10 years ago