This is the assignment of pococare and i have to built front-end and back-end both.
npm i --global
npx nodemon index.js
To run this application, you have to set your own environmental variables. For security reasons, some variables have been hidden from view and used as environmental variables with the help of dotenv package. Below are the variables that you need to set in order to run the application:
GET /
onlt admin and super admin can acces this route
GET /user/all
POST /user/register
POST /user/login
GET /user/logout
PATCH /user/update:id
DELETE /user/update:id
#### user Body
{
name: String,
email: String,
password: String,
role: user ,seller: String
}