callipyge-cloudant

0.6.0 • Public • Published

Callipyge-cloudant readme

Proxy to cloudant couchdb hosting service. Builds on h2o2.

Example usage

'use strict'

// npm
const Hapi = require('hapi')
const callipygeCloudant = require('callipyge-cloudant')

const server = new Hapi.Server()

server.connection({ port: 5050, host: 'localhost' })

server.register([{
  register: callipygeCloudant,
  options: {
    username: process.env.CLOUDANT_USERNAME,
    password: process.env.CLOUDANT_PASSWORD,
    dbName: process.env.CLOUDANT_DATABASE
  }
}])
  .then(server.start)
  .then(() => {
    // now do something interesting
  })
  .catch(console.error)

Provides

Server methods

server.methods.cloudant.post(doc, auth)

Decorations

reply and handler: cloudant

See also

This module is used in callipyge-core.

Dependencies (5)

Dev Dependencies (1)

Package Sidebar

Install

npm i callipyge-cloudant

Weekly Downloads

1

Version

0.6.0

License

none

Last publish

Collaborators

  • millette