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

    @hoodie/server-account-node-sessionspublic

    hoodie-server-account

    Account REST API backed by CouchDB

    Build Status Coverage Status Dependency Status devDependency Status

    Usage

    var Hapi = require('hapi')
    var hapiAccount = require('hoodie-server-account')
     
    var options = {
      couchdb: {
        url: 'http://localhost:5984',
        admin: {
          username: 'admin',
          password: 'secret'
        }
      },
      notifications: {
        service: 'gmail',
        auth: {
          user: 'gmail.user@gmail.com',
          pass: 'userpass'
        }
      }
    })
     
    server.register({register: hapiAccount}, options, function (error) {});
    server.connection({ port: 8000 });
    server.start(function () {
      console.log('Server running at %s', server.info.uri);
    });

    More

    License

    Apache-2.0

    install

    npm i @hoodie/server-account-node-sessions

    Downloadsweekly downloads

    0

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar