2.2.1 • Published 9 years ago

kazana-bootstrap v2.2.1

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
9 years ago

kazana-bootstrap

Kazana core module to bootstrap all things CouchDB

NPM version Build Status Dependency Status devDependency Status Coverage Status

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 test

A html coverage report can be generated with

npm run coverage

Credit

Brought to you by eHealth Africa — good tech for hard places.

License

Apache-2.0

2.2.1

9 years ago

2.2.0

9 years ago

2.1.6

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago