- please make sure you have installed the
environment for nodejs
. If you install it, installnvm
, it helps us to manage multiple node versions and easily switch node versions. - Make sure you have
nodemon
installed if not then use the commandnpm install -g nodemon
. - Install dependencies:
npm install
oryarn
. - Create
.env
file atroot/web-server
directory to setup environment variables:
DB_HOST = mongodb+srv://<username>:<password>@<host>/<db_name>?retryWrites=true&w=majority
APP_PORT = 3500
-
Start the server:
cd ./web-server nodemon app.js
. -
View locally on:
localhost:3500
||localhost:3000
.