Quick prototyping node+redis+socket.io API server for javascript applications
Quick prototyping node+redis+socket API server for javascript applications
0.0.1
MIT Licenced
Install vendors
npm install restify
npm install socket.io
npm install redis
Copy and edit config filecp conf/configuration.js.dist conf/configuration.js
Make sure Redis is running
Then run Copacabananode copacabana.js
Copacabana allows you to manage you backend API + push events for your frontend javascript apps. It is not designed to be used in production, rather to prototype fast javascript applications.
See here a live demo of famous Todo MVC Backbone running with copacabana.
Source code could be found in example/
Copacabana implements these urls:
GET /:namespace/:collection
POST /:namespace/:collection
+ push eventGET /:namespace/:collection/:id
PUT /:namespace/:collection/:id
+ push eventDELETE /:namespace/:collection/:id
+ push eventEvents sent are formatted that way:
POST /:namespace/:collection
: { method: 'POST', collection: collection, data: object}
sent in namespace
socket room