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
.envPORT- Node server PortSECRET- Secret for jwtMONGODB_URI- URI for Mongo in following formatmongodb+srv://user:password@host/EcommerceApp?retryWrites=true&w=majorityMONGODB_PASS- Password for mongo
-
Note: In
MONGODB_URIonly replace theuserwith your username and don't replace thepasswordin theMONGODB_URI.Give password inMONGODB_PASS.
touch .env- Run server
node index.js