Skip to content

project-sunbird/ml-survey-service

Repository files navigation

Mange Learn Survey APIs

Environment variables:

Hostname

HOST = localhost

Port number

POST = 3000

Mongo DB connecting string

MONGODB_URL = mongodb://localhost:27017

Database name

DB = dbname

Log level

  • 0 EMERGENCY system is unusable
  • 1 ALERT action must be taken immediately
  • 2 CRITICAL the system is in critical condition
  • 3 ERROR error condition
  • 4 WARNING warning condition
  • 5 NOTICE a normal but significant condition
  • 6 INFO a purely informational message
  • 7 DEBUG messages to debug an application
LOG = debug

port Define environment

NODE_ENV = development

Environment:

production

NODE_ENV=production node app.js

stage

NODE_ENV=stage node app.js

qa

NODE_ENV=qa node app.js

development

NODE_ENV=development node app.js