Nominating Presidential Muppets
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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.

Keywords

none

install

npm i callipyge-cloudant

Downloadsweekly downloads

11

version

0.6.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability