Webux Validator

Webux File Upload

Webux Static

Webux Auth

Start the application

Install the dependencies

Install all the node modules, from the root of the backend execute this command,

npm install

Start the application

To start the application, simply do:

npm start

Application Environment variables

You can find the files in the config/ directory,

Variable

Description

File

NODE_ENV

development or production or whatever

server.js

DB_URL

The URL of the database (@127.0.0.1:27017/database_name)

db.js

DB_USER

The username for the databse

db.js

DB_PASSWORD

The password for the database

db.js

DB_LOCAL

A boolean to enable or disable the mongo in memory feature (Enable it ONLY in development if needed.)

db.js

DB_DEBUG

A boolean to enable the Mongoose Logging feature

db.js

DB_REPLSET

The replica set name of your mongo instance if needed

db.js

APP_ID

The instance ID for logging

logger.js

MAIL_URL

The mail host

mailer.js

MAIL_PORT

The mail port

mailer.js

MAIL_SSL

The mail SSL enabled

mailer.js

MAIL_USER

The mail username

mailer.js

MAIL_PASSWORD

The mail password

mailer.js

COOKIE_SECRET

The Secret for the cookies

security.js

ORIGIN

The allowed origin (Must be an array, 'http://localhost localhost') Important By default, the ORIGIN variable will be handle like that : origin: process.env.ORIGIN.split(" ") || ["127.0.0.1"],. You must provide the array in that format (each URL separated by a SPACE): "http://my-ip.com http://my-other-domain.com" Otherwise it will not work as expected.

security.js

PORT

The port used for the backend, both the express and socket.io services

server.js

SSL_KEY

The SSL Key in base64 encode

server.js

SSL_CRT

The SSL cert in base64 encode

server.js

CONSOLE

This boolean will enable or disable the console output

logger.js

LOGSTASH_URL

This string is the logstash URL

logger.js

CORES

The number of cores to use in cluster mode

server.js

CLUSTERIZE

If you want to use the cluster mode of NodeJS

server.js

If you need more or different environment variables, you can easily add/modify these.