Skip to content
WPI User Hub
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
controllers
docs
helpers
middlewares
migrations
models
seeds
test
.dockerignore
.eslintrc
.gitignore
.jscsrc
.jshintrc
.travis.yml
Dockerfile
LICENSE.txt
MES-LICENSE.txt
README.md
app.js
gruntfile.js
init.sh
knexfile.js
nodemon.json
package.json
test.sh

README.md

Winding Path Initiative User Hub

This system is a REST API designed to handle member and org unit hierarchy and permissions. Designed to work with Amazon Cognito to handle membership.

Documentation can be found here

Based on the User Hub by Echo

Installation

  1. npm install.
  2. npm install -g knex.
  3. Make local versions of the default files in config and seeds with your changes
  4. Configure the database in config/db.json.
  5. knex migrate:latest.
  6. Configure the Cognito JWTS in config/auth.json and config/jwks.json.
  7. Start server with node www.

Config

  • auth - Contains credentials for Amazon Cognito
  • 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.

You can’t perform that action at this time.