- To install the node depedencies please run the following command in your terminal:-
npm i
- To run the api client run the following command in terminal:-
node api.js
- To login with the client use postman to generate post request since the user is entering sensetive information I have used url encoded param data form
- Format should be like this:-
-
- user: xyz
-
- pass: xyz
https://apiclient.onrender.com/api/login
- Format should be like this:-
-
- user: xyz
-
- pass: xyz
-
- role: basic/admin
https://apiclient.onrender.com/register