Skip to content

yuvi76/nodejs-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs Ecommerce

Prerequsite

  • NodeJS >= v12.18.3
  • mongoDB >= v4.2.3

Installation

  1. clone repo
$ git clone https://github.com/yuvi76/nodejs-ecommerce.git
$ cd nodejs-ecommerce
  1. create .env file
  2. 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

  1. install node modules
$ npm i
  1. start web server
$ npm start
  1. server will start on port define in .env or 3000(default).