This is a Node Api which allows users to login and view data according to their roles & permissions. For Eg: { Admin: Can view all the (users/data). Accounts Admin: Can view only accounts dept. (users/data). Sales Admin: Can view only sales detp. (users/data). }
- Build Setup install dependencies npm install
- Install MongoDB
- open the project folder in command prompt and Type npm run dev.
- Created the db with name bitelit and collections names also as bitelit and enter the data according to the data mentioned in "collections" file.
- Once the server is started and you can check the Api's and check the results in Postman.
- localhost:8000/api/login
- localhost:8000/api/show
- localhost:8000/api/logout
- I also have commented code for localhost:8000/api/accounts api if you want to check that as well kindly un-comment that code.
- To show the complete data db.bitelit.find().pretty()
- Technologies Used: Node.js, Express.js, MongoDB.
Author: Sanjay Rajpurohit Contact No: 9462678202 Mail-ID: sanjayrajpurohit36@gmail.com Skype ID: sanjayrajpurohit36@gmail.com