Userfic Mongoose backend
Manage users using mongoose and MongoDB. This module implements the abstract Userific interface
Installation
npm install -S userific-mongoose
Usage
var UserificMongoose = var config = host: 'localhost' // the host of the MongoDB server port: '27017' // the port of the MongoDB server db: 'userific-mongoose-test' // the mongodb database to use user: 'mongodb username here' // optional pass: 'mongodb username here' // optional var backend = config// backend implements all the interface methods of the abstract Userific modulevar registerData = email: 'foo@example.com' password: 'barPassword'backend
Test
# install development dependencies npm install# run tests npm test