node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

@hoodie/server-account-node-sessions

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