- NodeJS (v8+)
- git
- AWS S3
Configuration for the application is at config/default.js and config/production.js.
Create a local configuration file at config/local.js containing keys
The following parameters can be set in config files or in env variables:
-
LOG_LEVEL: the log level, default is 'debug', in production default is 'info'
-
PORT: the server port, default is 3000
-
API_PREFIX: the API path prefix, default is empty string ''
-
AUTH_SECRET: The authorization secret used during token verification.
-
VALID_ISSUERS: The valid issuer of tokens.
-
AUTH0_URL: AUTH0 URL, used to valid user token
-
AUTH0_PROXY_SERVER_URL: AUTH0 proxy server URL, used to valid user token
-
AUTH0_AUDIENCE: AUTH0 audience, used to valid user token
-
TOKEN_CACHE_TIME: AUTH0 token cache time, used to valid user token
-
AUTH0_CLIENT_ID: AUTH0 client id, used to valid user token
-
AUTH0_CLIENT_SECRET: AUTH0 client secret, used to valid user token
-
M2M_CLIENT_ID: Auth0 M2M Client ID for with all group related scope
-
M2M_CLIENT_SECRET: Auth0 M2M Client Secret for client ID
-
DEFAULT_TIMEOUT: Default time to wait while making a call to the Groups API
-
BUSAPI_URL: Bus API URL
-
MEMBER_API_URL: Member API endpoint
-
GROUP_API_URL: Group API endpoint
-
HEALTH_CHECK_TIMEOUT: health check timeout in milliseconds
-
GROUP_WIPRO_ALL: The default root group Guid
-
GROUP_DEFAULT_USERS: Array of default user Ids that needs to be added to each group
- Install dependencies
npm install - Start app in dev mode
npm run dev- it would use Nodemon, and restart the app on every code change. - Or start app in prod mode
npm start - App will be running at
http://localhost:3000