cerebral-pouchdb
A cerebral module for integrating the cerebral store with one or more pouch dbs.
Install
npm install cerebral-pouchdb
Usage
From your main.js
import controller from './controller'
import pouchdb form 'cerebral-pouchdb'
import home from './modules/home'
import notFound from './modules/notFound'
const modules = {
db: pouchdb({
localDb: 'myappdb',
remoteDb: 'http://localhost:3000/db/myappdb',
documentTypes: ['user', 'invoice']
}),
home,
notFound
}
controller.modules(modules)
Contribute
Fork repo
npm install
npm start
runs dev mode which watches for changes and auto lints, tests and buildsnpm test
runs the testsnpm run lint
lints the codenpm run build
compiles es6 to es5