- NodeJS >= v12.18.3
- mongoDB >= v4.2.3
- clone repo
$ git clone https://github.com/yuvi76/nodejs-ecommerce.git
$ cd nodejs-ecommerce
- create
.env
file - add following data:
# Development
NODE_ENV = dev
# SERVER DETAILS
URL = Server_IP_Address_or_domain_url
PORT = Server_Port
# DB DETAILS
DB_URL=Your_db_url
# JWT KEY
JWT_SECRET = jwt-secret
- install node modules
$ npm i
- start web server
$ npm start
- server will start on port define in
.env
or3000
(default).