/ecommerce_node

Basic Ecommerce Node and Mongo App

Primary LanguageJavaScript

Ecommerce Node

Simple Ecommerce App written in Node and Mongo

Functionality

1. User Register (type: buyer/seller)
2. Authendication
3. Add Product (type: seller)
4. Make Catelog (type: seller)
5. List Seller
6. Order A Product (type: buyer)

For More Information Check the Postman Collection

Steps:

  • Clone repository
yarn install
  • Add PORT,MONGODB_PASS,SECRET,MONGODB_URI in the .env

    • PORT - Node server Port
    • SECRET - Secret for jwt
    • MONGODB_URI - URI for Mongo in following format mongodb+srv://user:password@host/EcommerceApp?retryWrites=true&w=majority
    • MONGODB_PASS - Password for mongo
  • Note: In MONGODB_URI only replace the user with your username and don't replace the password in the MONGODB_URI.Give password in MONGODB_PASS.

touch .env
  • Run server
node index.js