Skip to content

devil-cyber/role_based_login

Repository files navigation

For more details anlyze the route section

Used Postman to perform any action

User role based login system

users are:patient,doctor,admin

patient can update his profile and read his profile only

- To read the profile of any patient run this project in local system:
- npm install
- npm start
System will start localy at port:3000
Go to postman and used url

localhost:3000/signup

keep method as Post:
provide your email,password,role as key and hit send:

To get the user used

localhost:3000/users

Provide x-acess-token that you will get after login as a admin/doctor:

Doctor can update the user and extend
But an admin can delete the user by using the x-acess-token

Releases

No releases published

Packages

No packages published