Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    callipyge-cloudantpublic

    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

    17

    version

    0.6.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar