hoodie-server-account
Version:
Account REST API backed by CouchDB
52 lines (40 loc) • 1.49 kB
Markdown
# hoodie-server-account
> Account REST API backed by CouchDB
[](https://travis-ci.org/hoodiehq/hoodie-server-account)
[](https://coveralls.io/r/hoodiehq/hoodie-server-account?branch=master)
[](https://david-dm.org/hoodiehq/hoodie-server-account)
[](https://david-dm.org/hoodiehq/hoodie-server-account#info=devDependencies)
## Usage
```js
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
- [Plugin & Options](plugin/README.md)
- [Routes](routes/README.md)
- [API](api/README.md)
- [How it works](how-it-works.md)
- [Testing](routes/README.md)
## License
[Apache-2.0](https://github.com/hoodiehq/hoodie/blob/master/LICENSE)