@hoodie/server-account-node-sessions
v1.0.0
Published
Account REST API backed by CouchDB
Downloads
7
Maintainers
Readme
hoodie-server-account
Account REST API backed by CouchDB
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: '[email protected]',
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);
});