3 ms·
Can something like this be done with CouchDB and PouchDB? (CouchDB JS implementation – http://pouchdb.com/ http://pouchdb.com/)
by adamfeldman 11y ago
Can something like this be done with CouchDB and PouchDB? (CouchDB JS implementation – http://pouchdb.com/ http://pouchdb.com/)
- scoot 11y agoYes, 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.