In this Project
A user can order a product based on which product has been sold the most and which admin has sold the most An admin can do two things:
1.Admin can view the list of users purchased products in two orders. The orders are:
How many products an user ordered
How many types of products an user ordered
2.Admin can sell a product to customers
Here Jwt authentication is used so that unauthorised access can be ommitted
Mongodb Database- For fast and efficient accessing and storing of data
Express
Body Parser
Multer
JsonwebToken
Mongoose
dotenv
path
To install modules use the command:
npm install
To run the application use the command:
npm start
visit http://localhost:3000 to use as a User
visit http://localhost:3000/admin to use as Admin