An experiment in basic real-time visualization of CouchDB _changes
stream
with Node.js and Socket.IO.
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"}'