Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
couchdb-bootstrap
Advanced tools
Bootstrap projects: configure CouchDB, setup security, deploy ddocs and create users.
Bootstrap CouchDB server from CLI or API.
CouchDB Bootstrap combines different small tools, which can also be used independently. Each of those tools come has a similar API and is shipped with a CLI:
Think about CouchDB Bootstrap as a toplevel manager, which reads a directory of
databases and optional _config
and hands each file over to the appropriate tool:
project/couchdb
├── _config.json
├── _replicator
│ ├── setup-alice.json
│ └── setup-bob.json
├── _users
│ ├── alice.json
│ └── bob.json
├── myapp
│ ├── _design
│ │ └── myapp.js
│ ├── _security.json
│ └── adoc.json
├── myapp-alice
│ └── _security.json
└── myapp-bob
└── _security.json
In the directory tree above project/couchdb/_config.json
is handed to
couchdb-configure,
project/couchdb/_replicator/setup-alice.json
,
project/couchdb/myapp/_design/myapp.js
project/couchdb/myapp/adoc.json
are handed (beside others) to
couchdb-push
and project/couchdb/myapp-alice/_security.json
to
couchdb-secure.
See couchdb-compile for more details about the CouchDB Filesystem Mapping on a document / security object / config level.
bootstrap(url, source[, options], callback)
url
- CouchDB server URLsource
- directory holding the bootstrap treeoptions.index
- When set to true
, folders are searched for index.js
, which, if present, is treated as CommonJS module. Default is false
.options.concurrency
- Limit number of concurrent requests. Defaults to 100
.options.multipart
- When set to true
, attachments are saved via multipart api. Default is false
.options.watch
- When set to true
, documents are pushed on filesystem change. Default is false
.callback
- called when done with a response
object describing the status of all operations.var bootstrap = require('couchdb-bootstrap')
bootstrap('http://localhost:5984', 'project/couchdb', function(error, response) {
// here we go
})
couchdb-bootstrap URL [SOURCE] [OPTIONS]
Or use the shortcurt cdbb
.
When SOURCE
is omitted, the current directory will be used.
options.index
is always true.
OPTIONS
can be '--concurrency', --multipart
or --watch
, see above.
couchdb-bootstrap http://localhost:5984 project/couchdb
npm test
FAQs
Bootstrap projects: configure CouchDB, setup security, deploy ddocs and create users.
The npm package couchdb-bootstrap receives a total of 186 weekly downloads. As such, couchdb-bootstrap popularity was classified as not popular.
We found that couchdb-bootstrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.