Skip to content

malviya-abhishek/e-commerce-api-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce Rest API ✨

Hakuna Matata

Need a simple API for your front-end application that offers

  • Restfull interface
  • JWT Authentication
  • And a little bit of ✨

Features

  • Restfull interface for seemless api calls 🤙
  • Meaningful error messages for bugs 🐞
  • Simple file structure for extending and managing API 🗄️
  • Validation and Permission with JWT 🔐

Tech

  • Node.js
  • Express
  • MongoDB
  • json web token

Installation

First setup .env file

PORT = <PORT NUMBER>
JWT_SECRET = <SECRET_KEY>
CUSTOMER = 1
SELLER = 4
ADMIN = 2048
DB_NAME = <DATABASE_NAME>

Install the dependencies and devDependencies and start the server.

cd rest-api-practice
npm i
npm run start

or

cd rest-api-practice
yarn add
yarrn start

For develpment environments...

npm run dev

or

yarn dev

For API read api.md

License

MIT

Releases

No releases published

Packages

No packages published