2020-04-23 15:37:08 +02:00
|
|
|
// const nano = require("nano")
|
|
|
|
const PouchDB = require("pouchdb");
|
2020-04-07 16:12:08 +02:00
|
|
|
|
2020-04-08 18:00:27 +02:00
|
|
|
const COUCH_DB_URL =
|
|
|
|
process.env.COUCH_DB_URL || "http://admin:password@localhost:5984"
|
2020-04-07 16:12:08 +02:00
|
|
|
|
2020-04-23 15:37:08 +02:00
|
|
|
const CouchDB = PouchDB.defaults({
|
|
|
|
prefix: COUCH_DB_URL
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = CouchDB;
|