This is a Request Responder for SocketStream which connects a backbone.js model in the browser to a CouchDB database at the server end.
The couchbone responder overrides the Backbone.sync method so that all create, read, update and delete actions are sent to the server using Socketstream (the default is websockets if supported in your browser) and applied to the specified CouchDB database.
This is an initial 0.0.x version with the corresponding limited functionality and limited testing. It should be used with caution!
The best way to get started with ss-couchbone is to take a look at the example application which uses ss-couchbone to implement a version of the well known Backbone.js Todos example application with persistence to CouchDB using Socketstream.
Clone the repo locally and install it with:
[sudo] npm link
Create a new SocketStream project and create a local link to this repo:
cd my_new_socketstream_project
[sudo] npm link ss-couchbone
Add the Couchbone responder to your socketstream stack:
// in app.js
ss.responders.add(require('ss-couchbone'));