https://github.com/mikeal/node.couch.js
CouchDB + node.js == Crazy Delicious
https://github.com/mikeal/node.couch.js
Last synced: 2 months ago
JSON representation
CouchDB + node.js == Crazy Delicious
- Host: GitHub
- URL: https://github.com/mikeal/node.couch.js
- Owner: mikeal
- Created: 2009-12-14T22:31:05.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-09-28T16:40:17.000Z (almost 15 years ago)
- Last Synced: 2024-10-18T08:55:27.121Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 70
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.mkd
- Changelog: changes/lib/child.js
Awesome Lists containing this project
README
# node.couch.js
This a repository full of all kinds of CouchDB + node.js goodies. This is not, however, a CouchDB client library.
## changes
To use the changes service:
> cd changes
> node service.js http://localhost:5984This will start the service, look for any design documents, and start any change listeners you've defined. It also checks every minute for new databases.
To define a new listener in your design doc:
{ ...."changes":"var sys = require('sys');
var listener = function (change) {
sys.puts(JSON.stringify(change));
}
exports.listener = listener;",
}