Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An experiment in basic real-time visualization of CouchDB _changes stream with Node.js and Socket.IO
JavaScript Shell
branch: master

Readme.markdown

Visualizing CouchDB Database Changes with Node.js and Sockets

An experiment in basic real-time visualization of CouchDB _changes stream with Node.js and Socket.IO.

Screenshot: Realtime visualization of CouchDB _changes with Node.js

Installation

Clone the repository and navigate into it:

$ git clone git://github.com/karmi/visualizing-couchdb-changes-with-node-js.git couchdb-changes
$ cd couchdb-changes

Initialize the submodules:

$ git submodule update --init

Copy (and posibly edit) the configuration file (it listens on http://localhost:5984/test by default):

$ cp config.example.json config.json

Start the Node.js server:

$ node server.js

Open the client application in browser:

$ open http://localhost:8000/

Now make some changes in the database and see them in you browser, instantly:

$ curl -H 'Content-Type: application/json' -X POST http://localhost:5984/test -d '{"foo":"bar"}'

Karel Minarik

Something went wrong with that request. Please try again.