Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kazana-bootstrap

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kazana-bootstrap

Kazana core module to bootstrap all things CouchDB

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
increased by91.67%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 08 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc