2.6.19 • Published 9 years ago
hoodie-server-account v2.6.19
hoodie-server-account
Account REST API backed by CouchDB
✷ coverage is currently disabled: #37
Usage
var Hapi = require('hapi')
var PouchDB = require('PouchDB')
var hapiAccount = require('hoodie-server-account')
PouchDB.plugin(require('pouchdb-users'))
var db = new PouchDB('http://localhost:5984/_users')
db.installUsersBehavior().then(function () {
var options = {
usersDb: db,
admins: {
admin: '-pbkdf2-a2ca9d3ee921c26d2e9d61e03a0801b11b8725c6,1081b31861bd1e91611341da16c11c16a12c13718d1f712e,10'
},
secret: 'secret123'
})
server.register({register: hapiAccount, options: options}, function (error) {});
server.connection({ port: 8000 });
server.start(function () {
console.log('Server running at %s', server.info.uri);
});
})
More
License
2.6.19
9 years ago
2.6.18
9 years ago
2.6.17
9 years ago
2.6.16
9 years ago
2.6.15
9 years ago
2.6.14
9 years ago
2.6.13
9 years ago
2.6.12
9 years ago
2.6.11
9 years ago
2.6.10
9 years ago
2.6.9
9 years ago
2.6.8
9 years ago
2.6.7
9 years ago
2.6.6
9 years ago
2.6.5
9 years ago
2.6.4
9 years ago
2.6.3
9 years ago
2.6.2
9 years ago
2.6.1
9 years ago
2.6.0
9 years ago
2.5.0
9 years ago
2.4.0
9 years ago
2.3.1
10 years ago
2.3.0
10 years ago
2.2.1
10 years ago
2.2.0
10 years ago
2.1.0
10 years ago
2.0.1
10 years ago
2.0.0
10 years ago
1.3.0
10 years ago
1.2.0
10 years ago
1.1.0
10 years ago
1.0.0
10 years ago