CleverStack Authentication Module
This CleverStack Module provides users & authentication for the node-seed, it works with either the Object Relational Mapper (clever-orm) AND the Object Document Mapper (clever-odm) Module's.
Out of the box you can use this module with MongoDB, MySQL, MariaDB, PostgreSQL or SQLite! And because this module uses Redis for session storage it's also scalable.
Documentation
See cleverstack.io for more detailed information on the Node seed or visit the Getting Started Guide
Configuration
You can use this module with either the clever-orm (ORM) or clever-odm (ODM) modules, simply add the following config to your /config/local.json (or into your global.json for all environments, or in whatever environment you are using).
// For ODM
"clever-auth": {
"driver": "ODM"
}
// For ORM
"clever-auth": {
"driver": "ORM"
}
Setup
Prerequisite: Install and run Redis Server - http://redis.io/
Using CLI
- Run
clever install clever-auth
and follow the prompts - Run
clever serve
to start your application.
Without CLI
- Clone this repo (or untar it there) into your modules folder (ie modules/clever-auth)
- Add 'clever-auth' to the bundledDependencies array of your app's package.json.
- Run
grunt db
to rebase and seed the data. - Run
grunt server
to start your application.
Test Account Credentials
username: test@cleverstack.io
password: clever