Backened Server :
- Create a user: In this operation a user will be created with username,password, name, phone number.
- Update a user: In this operation the user will be able to update password, name or phone number.
- Get details of a user based on username: In this operation the user will be able to get details of a user on the basis of username
- Delete user: user will be deleted on the basis of username
Server: Node, Express
Database: MongoDB
Clone the project
git clone https://github.com/monster256/webteam-task-4.gitGo to the project directory
cd webteam-task-4Install dependencies
npm installStart the server
nodemon index.js https://web-team-task-4.herokuapp.com/ POST /user_register/register| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. username of Person |
Name |
string |
Required. Name of a Person |
password |
string |
Required. password of a Person |
phoneno |
int |
Required. phoneno of Person |
GET /user_update/${username}| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. username of Person to Update |
Name |
string |
Required. Name of a Person for Update if not then leave it |
password |
string |
Required. password of a Person for Update if not then leave it |
phoneno |
int |
Required. phoneno of Person for Update if not then leave it |
GET /user_detail/${username}| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. username of Person to get Detail |
GET /user_del/${username}| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. username of Person to Delete |