Clone the project
git clone https://github.com/MihirSavjani/Plutomen-Task.git
Go to the project directory
cd Plutomen-Task
Install dependencies
npm install
Start the server
npm run start
POST http://localhost:3000/user
Parameter | Type | Description |
---|---|---|
name |
string |
Required. Your username |
email |
string |
Required. Your email |
password |
string |
Required. Your password |
role |
string |
Required. Your role |
department |
string |
Required. Your department name |
POST http://localhost:3000/user/login
Parameter | Type | Description |
---|---|---|
email |
string |
Required. Your email |
password |
string |
Required. Your password |
GET http://localhost:3000/user/contact-list
GET http://localhost:3000/user/contacts?name='user name'&email='user email'&role='role name'
Query Params | Type | Description |
---|---|---|
name |
string |
name |
email |
string |
email id |
role |
string |
role |
To run this project, you will need to add the following environment variables to your .env file
SECRET_KEY="PLUTOMEN"
Import the postman collection 'Plutomen Task.postman_collection.json' from root directory of the project.