/Node-API

Primary LanguageJavaScript

This is a Node Api which allows users to login and view data according to their roles.
{	Admin: Can View all the data of users.
	Accounts Admin: Can view only accounts data.
	Sales Admin: Can view only sales data.
}
1. Install Node Js.
2. Install the dependencies and scripts.(Mongodb, mongoose, nodemon, body-parser)
3. Install MongoDB
4. open the project folder in command prompt and Type npm run dev.
5. Created the db with name bitelit and collections names also as bitelit and enter the data according to the data 
   mentioned in "collections" file.
6. Once the server is started and you can check the Api's and check the results in Postman. 
	1. localhost:8000/api/login
	2. localhost:8000/api/show
	3. localhost:8000/api/logout
7. I also have commented code for localhost:8000/api/accounts api if you want to check that as well kindly un-comment that code.
Author: Sanjay Rajpurohit
Contact No: 9462678202
Mail-ID: sanjayrajpurohit36@gmail.com
Skype ID: sanjayrajpurohit36@gmail.com