An experiment in basic real-time visualization of CouchDB _changes stream with Node.js and Socket.IO
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with karmi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.gitmodules
Readme.markdown
bg.png
config.example.json
index.html
multi-insert.sh
screenshot.png
server.js

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