Skip to content

ashishbhatiam/node-ecommerce-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node E-Commerce API

An full E-Commerce API build with Nodejs, Express and Mongo

Project Setup

In order to run app properly, Add a `.env `file to the root of your project with the following content:

MONGO_URI = <DB connection string>
PORT = <PORT number in order to avoid port collisions>
JWT_SECRET = <jwt secret code>
JWT_LIFETIME = <jwt expires limit>
STRIPE_SECRET_KEY = <stripe secret code>
CLOUD_NAME = <cloudinary cloud name>
CLOUD_API_KEY = <cloudinary api key>
CLOUD_API_SECRET = <cloudinary api secret>

Install

npm install

Running

npm start

Base url

http://localhost:5001