Skip to content

Configure CouchDB from file, node module or directory.

License

Notifications You must be signed in to change notification settings

jo/couchdb-configure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CouchDB Configure

Configure CouchDB database server from filesystem.

API

configure(url, source[, options], callback)
  • url - CouchDB server URL
  • source - Can be a Couchapp Directory Tree, JSON file or CommonJS/Node module. Please see couchdb-compile for in depth information about source handling.
  • callback - called when done with a response object describing the status of all operations.

Example

var configure = require('couchdb-configure')
configure('http://localhost:5984', 'couchdb/config.json', function(error, response) {
  // here we go
})

CLI

couchdb-configure URL [SOURCE]

When SOURCE is omitted, the current directory will be used.

Example

couchdb-configure http://localhost:5984 couchdb/config.json

Tests

npm test