4 ms·
Yes, in a few lines of code: const PouchDB = require('pouchdb'); const localDB = new PouchDB('db'); const remoteDB = new PouchDB('http://192.168.1.
by scoot 11y ago
Yes, in a few lines of code:
const PouchDB = require('pouchdb');
const localDB = new PouchDB('db');
const remoteDB = new PouchDB('http://192.168.1.100:5984/db');
// remote db can be a CouchDB or PouchDB server.
localDB.sync(remoteDB);
I'm using this with React for a mobile app that works offline, and syncs up when a connection is available.