Created
September 7, 2018 17:52
-
-
Save rjcorwin/b6b7abe785f538e2d97c4a248b8507f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let username = ''; | |
let password = ''; | |
let dbName = ''; | |
const PouchDB = require('pouchdb') | |
const DB = PouchDB.defaults({ | |
prefix: '/tangerine/db/' | |
}); | |
try { | |
DB.replicate( | |
'tusome', | |
`http://${username}:${password}@couchdb:5984/${groupDbName}` | |
) | |
} catch(e) { | |
console.log(e) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment