npm.io
1.0.1 • Published 5 years ago

@happy-mandado/auth

Licence
MIT
Version
1.0.1
Deps
13
Size
4 kB
Vulns
1
Weekly
0

Happy Mandado Auth

Handles happy mandado webapp authentication

Setup

Requirements

Install nodejs:

$ brew install nodeenv

# Node Version X.Y
$ nodeenv /path/to/your/envs/node
$ source /path/to/your/envs/node/bin/activate
$ cd /path/to/waitress/repo/path

$ npm install

Auth0 tenant:

Domain
Client ID
Client Secret
Scope
Config files

Each env must require its own:

  • Domain
  • API Origin
  • API Port
  • Auth callback
  • Auth redirect
  • Cookie name
  • Cookie secret
  • Cookie domain

Test

$ npm test-unit
$ npm --silent run test-path path/to/file

Run

Development

$ npm start-dev

Production

$ npm start

Keywords