Copacabana

Quick prototyping node+redis+socket.io API server for javascript applications

View the Project on GitHub guillaumepotier/copacabana

Copacabana

Quick prototyping node+redis+socket API server for javascript applications

Version

0.0.1

Licence

MIT Licenced

Install

Install vendors

  npm install restify
  npm install socket.io
  npm install redis

Copy and edit config file
cp conf/configuration.js.dist conf/configuration.js

Make sure Redis is running

Then run Copacabana
node copacabana.js

General usage

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.

Example

See here a live demo of famous Todo MVC Backbone running with copacabana.

Source code could be found in example/

API

Copacabana implements these urls:

Socket events

Events sent are formatted that way:

POST /:namespace/:collection: { method: 'POST', collection: collection, data: object} sent in namespace socket room