/Ecommarce-Shop-Rest-Api

A MERN stack E-commerce shop rest api made with Javascript, NodeJS, ExpressJS, MongoDB, JWT

Primary LanguageJavaScript

About The Project

A Restful E-commerce shop API.

Built With

  • NodeJS
  • Express.js
  • MongoDB

Features :

Auth

  • Sign In ,Sign Up ,Sign Out with the help of JSON WEB TOKEN (Public key cryptography RSA -RS256- algorithm is used to sign and vaidate JWT Token)
  • Access Token & Refresh Token Authentication.
  • Role based Authorization.
  • Customer can change their Password.
  • Forgot Password -Customer can reset their Password Using Two Factor Authentication

Customer

  • Customer can get their profile.

  • Customer can Get their all addresses.

  • Customer can add and delete their addresses.

  • Customer can add and change their Avatar.

  • Customer can change their name.

  • Customer can change their phone number

  • Customer can Get their Wishlist.

  • Customer can add or remove products to their Wishlist.

  • Customer can get their cart.

  • Customer can add or remove product's to their cart.

  • Customer can get the list of their pending orders.

  • Customer can get their Purchase History.

Product

  • Customer can get all the available products.

  • Customer can Search a product by Name.

  • Customer can Search a product by Category.

  • Customer can Find a list of products.

  • Customer can create a product review.

  • Customer can update and delete their product review.

Order

  • Customer can Create an Order.

  • Customer can Cancel a Order.

Seller

  • Seller can create a product.

  • Seller can update and delete a product.

  • Seller can complete a pending Order.

  • Seller can get all the pending orders.

  • seller can get their monthly income.

  • Seller can get their stock status.

  • Seller can generate discount Token.

payment

  • Customer can pay their orders.

Getting Started

create a .env file and use the .env.example to add all the values

Prerequisites

  • NodeJS
  • NPM

Installation

  1. Clone the repo

    git clone https://github.com/muttaqin1/nodejs-Ecommarce-shop-rest-api
  2. Install NPM packages

    npm install
  3. Add all the environment variables.

  4. run npm run dev

Contact