couchdb code example
Example: pouchdb
var db = new PouchDB('dbname');
db.put({
_id: '[email protected]',
name: 'David',
age: 69
});
db.changes().on('change', function() {
console.log('Ch-Ch-Changes');
});
db.replicate.to('http://example.com/mydb');