This MERN Task For Zixflow
-
Clone the repository:
git clone https://github.com/Ramraghul/zixflow_task.git
-
Navigate to the server directory:
cd ./server
-
Install server dependencies:
yarn install
-
Navigate to the client directory:
cd ../client
-
Install client dependencies:
yarn install
-
Start the server:
cd ../server yarn start or nodemon
-
Start the client:
cd ../client yarn start
-
Access the client application at
http://localhost:3001
. -
Access the server application at
http://localhost:8080
.
- Access the client application at
https://zixflow-client.vercel.app
. - Access the server application at
https://zixflow-task.vercel.app
.
- Endpoint:
http://localhost:8080/contact/getContactsList
orhttps://zixflow-task.vercel.app/contact/getContactsList
- Method: Get
- Description: This endpoint is used for Get all Contacts.
- Request Body: JSON
[ { "firstName": "John", "lastName": "Doe", "gender": "MALE", "address": { "line1": "123 Main Street", "line2": "", "city": "New York", "country": "USA", "zipCode": "10001" }, "email": "gust@gust.com", "phone": "1234567890", "other": "Some additional information" } ]
- Endpoint:
http://localhost:8080/contact/createContact
orhttps://zixflow-task.vercel.app/contact/createContact
- Method: POST
- Description: This endpoint is used to create a new Contact.
- Request Body: JSON
{ "firstName": "John", "lastName": "Doe", "gender": "MALE", "address": { "line1": "123 Main Street", "line2": "", "city": "New York", "country": "USA", "zipCode": "10001" }, "email": "gust@gust.com", "phone": "1234567890", "other": "Some additional information" }
- Endpoint:
http://localhost:8080/contact/updateContactById/:id
orhttps://zixflow-task.vercel.app/contact/updateContactById/:id
- Method: PUT
- Description: This endpoint is used to update a Contact by its ID.
- Request Body: JSON
{ "firstName": "Elon" }
- Endpoint:
http://localhost:8080/contact/deleteContactById/:id
orhttps://zixflow-task.vercel.app/contact/deleteContactById/:id
- Method: DELETE
- Description: This endpoint is used to delete a Contact by its ID.
- Endpoint:
http://localhost:8080/contact/deleteContactList
orhttps://zixflow-task.vercel.app/contact/deleteContactList
- Method: DELETE
- Description: This endpoint is used to delete multiple Contact's same time.
- Request Body: JSON
{ "listId" :["79e689b5-af51-40a0-822f-630532029c74","2918e7b4-4ca1-4ad8-a6c8-c26efa669473"] }
For any inquiries or feedback, please contact Raghul.