Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node point javascript server for plumbdb
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
node_modules/routes
.gitignore
LICENSE
bulk_bench.js
index.js
leveldb_bench.js
package.json
readme.md
run.js
test.js

readme.md

streaming + syncing http + json api for PlumbDB (which is built on leveldb)

npm install plummet


var plummet = require('plummet')

plummet('test', function(err, server) {
  server.listen(8000)
  console.log('plummeting on 8000')
})


curl -X POST http://localhost:8000 -H "Content-type: application/json" -d '{"pizza":"waffle"}'
curl -X POST http://localhost:8000/_bulk -d '{"docs":[{"hello":"world"}, {"foo":"bar"}]}' -H "Content-type: application/json"
curl http://localhost:8000/_changes
curl http://localhost:8000/_changes?since=1339537769596014
curl http://localhost:8000/1339537769596014
curl -X POST http://localhost:8000/_pull -d '{"source":"http://remoteplummet"}' -H 'content-type: application/json'
Something went wrong with that request. Please try again.