Mind's Eye Society User Hub
This system is a REST API designed to handle member and org unit hierarchy and permissions. Designed to interface with the MES Portal via OAuth and configurable clients.
Documentation can be found here
Installation
npm install
.npm install -g knex
.- Configure the database in
config/db.json
. knex migrate:latest
.- Configure the OAuth tokens in
config/auth.json
andconfig/clients.json
. - Start server with
node www
.
Config
auth
- Contains OAuth credentials for the Portal server.clients
- Clients, organized via ID : redirect URL.db
- Database credentials.roles
- JSON of valid roles, with descriptions.templates
- Office permission templates, used when creating new org units.
Tests
Tests are run with Mocha and Supertest. They can be run with NODE_ENV=testing mocha
locally. grunt validate
is also used to lint the code.