By: Dale Harvey
Published: 11 December 2014
If you are testing JavaScript you will likely have to test against async API's. These bring up some issues that you may not be familiar with if you are used
[...]
PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the browser.
PouchDB was created to help web developers build applications that work as well offline as they do online.
It enables applications to store data locally while offline, then synchronize it with CouchDB and compatible servers when the application is back online, keeping the user's data in sync no matter where they next login.
Learn morevar db = new PouchDB('dbname');
db.put({
_id: 'dave@gmail.com',
name: 'David',
age: 67
});
db.changes().on('change', function() {
console.log('Ch-Ch-Changes');
});
db.replicate.to('http://example.com/mydb');
Works in Firefox, Chrome, Opera, Safari, IE and Node.js
PouchDB is just a script tag and 34KB (gzipped) away in the browser, or $ npm install pouchdb
away
in Node.
Requires some programming knowledge, however PouchDB is a piece of cake to learn.
Everything is developed out in the open on Github, contributors always welcome!
The Pains Of Being Async At Heart
By: Dale Harvey
Published: 11 December 2014
If you are testing JavaScript you will likely have to test against async API's. These bring up some issues that you may not be familiar with if you are used
[...]
PouchDB 3.2.0: To code is human, to debug is divine
By: Nolan Lawson
Published: 04 December 2014
Hot on the heels of the last release, we present 3.2.0, which has new features to increase developer productivity, as well as a slew of bugfixes.
[...]