hoodie-server-account

Account REST API backed by CouchDB

hoodie-server-account is now @hoodie/account-server
Last updated 4 years ago by hoodie .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hoodie-server-account 
SYNC missed versions from official npm registry.

hoodie-server-account

Account REST API backed by CouchDB

Build Status Dependency Status devDependency Status

✷ 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

Apache 2.0

Current Tags

  • 2.6.19                                ...           latest (4 years ago)

33 Versions

  • 2.6.19 [deprecated]           ...           4 years ago
  • 2.6.18 [deprecated]           ...           4 years ago
  • 2.6.17 [deprecated]           ...           4 years ago
  • 2.6.16 [deprecated]           ...           4 years ago
  • 2.6.15 [deprecated]           ...           4 years ago
  • 2.6.14 [deprecated]           ...           4 years ago
  • 2.6.13 [deprecated]           ...           4 years ago
  • 2.6.12 [deprecated]           ...           4 years ago
  • 2.6.11 [deprecated]           ...           4 years ago
  • 2.6.10 [deprecated]           ...           4 years ago
  • 2.6.9 [deprecated]           ...           4 years ago
  • 2.6.8 [deprecated]           ...           4 years ago
  • 2.6.7 [deprecated]           ...           4 years ago
  • 2.6.6 [deprecated]           ...           4 years ago
  • 2.6.5 [deprecated]           ...           4 years ago
  • 2.6.4 [deprecated]           ...           4 years ago
  • 2.6.3 [deprecated]           ...           4 years ago
  • 2.6.2 [deprecated]           ...           4 years ago
  • 2.6.1 [deprecated]           ...           4 years ago
  • 2.6.0 [deprecated]           ...           4 years ago
  • 2.5.0 [deprecated]           ...           4 years ago
  • 2.4.0 [deprecated]           ...           4 years ago
  • 2.3.1 [deprecated]           ...           4 years ago
  • 2.3.0 [deprecated]           ...           4 years ago
  • 2.2.1 [deprecated]           ...           4 years ago
  • 2.2.0 [deprecated]           ...           4 years ago
  • 2.1.0 [deprecated]           ...           4 years ago
  • 2.0.1 [deprecated]           ...           4 years ago
  • 2.0.0 [deprecated]           ...           4 years ago
  • 1.3.0 [deprecated]           ...           4 years ago
  • 1.2.0 [deprecated]           ...           4 years ago
  • 1.1.0 [deprecated]           ...           4 years ago
  • 1.0.0 [deprecated]           ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 33
Dependencies (12)
Dev Dependencies (13)

Copyright 2014 - 2016 © taobao.org |