2.2.1 ⢠Published 10 years ago
kazana-bootstrap v2.2.1
kazana-bootstrap
Kazana core module to bootstrap all things CouchDB
Usage
var bootstrap = require('kazana-bootstrap')
var options = {
name: 'my-app',
config: { // appConfig as returned by kazana-config
admin: {
username: 'admin',
password: 'secret'
}
},
couchUrl: 'http://localhost:5984',
bootstrapPath: path.resolve(__dirname, '../bootstrap')
};
bootstrap(options, function (error) {});Here is what happens
kazana-bootstrap does two things:
- creates admin user if couch is in admin party
- bootstraps CouchDB from couchdb-bootstrap folder
The following tasks can be performed with CouchDB Bootstrap:
- set and override
/_config - create databases (unless existent)
- create and update database _security objects
- create and update user accounts
- create and update design documents
- create and update replication documents
- create and update seed documents
Test
npm testA html coverage report can be generated with
npm run coverageCredit
Brought to you by eHealth Africa ā good tech for hard places.