0.6.0 • Published 7 years ago

callipyge-cloudant v0.6.0

Weekly downloads
28
License
-
Repository
github
Last release
7 years ago

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.

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago