CouchDB Bootstrap
Bootstrap CouchDB database:
Directory
/path/to/my/project/couchdb
├── _config.json
├── _users
│ ├── alice.json
│ └── bob.json
├── alicedb
│ └── _security.json
└── bobdb
├── _design
│ └── myapp
│ ├── validate_doc_update.js
│ └── views
│ └── by-date
│ ├── map.js
│ └── reduce
└── _security.json
See couch-compile for more details about
the CouchDB filesystem mapping used for deploying users, design documents,
normal documents and replications.
API
var bootstrap = require('couchdb-bootstrap')
bootstrap('http://localhost:5984', 'project/couchdb', function(error, response) {
})
CLI
couchdb-bootstrap http://localhost:5984 /path/to/my/project/couchdb
Tests
npm test