#[accountManager.js 0.1]
####A simple module to add a simple account management API and user model to your project, with multiple databases supported:
accountManager.js
- couchDB
- redis
- riak
- mongo (planned)
- postgres (planned)
- ....and any others people would like to add (submit pull requests!)
####The following features are included:
- New User Account Creation
- Secure Password Reset via Email (using the hash and the email address)
- Ability to Update / Delete Account
- Blowfish-based Scheme Password Encryption (only stores hashes in database)
- Get user information by username or password
- Log in with a hash (cookie) or with the plaintext password
####accountManager.js is built on top of the following libraries :
- Node.js - Application Server
- node.bcrypt.js Password Cryptography
- EmailJS - Node.js > SMTP Server Middleware
- Moment.js - Lightweight Date Library
- Mocha - Amazing testing library
- Nano - Thin couchDB wrapper
- should.js - BDD style test assertions
####Installation & Setup This assumes you already have node.js, npm, and different databases installed.
- Put a config.json in the root folder of the module, check the tests, until I can write some good documentation the test file is the best bet
{
"type": "couch",
"database_name": "YOUR DB NAME",
"couch_host": "http://USER:PASS@HOST:PORT",
"couch_user": "USER",
"couch_pass":"PASS",
}