1.0.1 • Published 10 years ago
jack-db-couchdb v1.0.1
jack-db-couchdb
This Jack-Stack Plugin is used to add create jack.db.couchdb.
jack.plugins.add(require('jack-db-couchdb'));Configuration
You can either pass in your configuration:
var jack = require('jack-stack');
var couch = require('jack-db-couchdb');
jack.plugins.add(couch.configure({
url: '1.1.1.1', // Some IP
port: '1234' // Some PORT
}));Or you can use node-config and set the config variables in your config/ files:
module.exports = {
db: {
couch: {
url: '1.1.1.1', // Some IP
port: '1234' // Some PORT
},
}
};Options
You can either set the host parameter:
couch({
host: 'https://full:path@to.domain:port'
});or you can use the url and port options:
couch({
url: '1.1.1.1', // Some IP
port: '1234' // Some PORT
});This uses the format: host = http://{config.url}:{config.port}