Have Node.js and npm installed and working
- Install the dependencies with
npm install
- Create and fill and
.env
file in the root of the project (see reference below for the keys) - Start development server with
npm run start
- Install the dependencies with
npm ci
(install exact dependencies as defined bypackage-lock.json
file) - Create and fill and
.env
file in the root of the project (see reference below for the keys) - Start the server with
node index.js
or using a process manager like PM2 for example
key | value | description |
---|---|---|
NODE_ENV | development or production |
dev or prod flag |
DB_SERVER | <url> |
url of the db server |
DB_PORT | number | port of the db server |
DB_NAME | string | name of the db collection |
DB_AUTH_USER | string | db user |
DB_AUTH_PASSWORD | string | db password |
DB_AUTHSOURCE | string | authentication db |