A simple Contact management app built in NodeJS, MongoDB
- Clone the repo.
- npm i.
- nodemon index.js
The user can manage Contacts and Contact groups.
GET /contact
GET /contact?q=search_query
POST /contact
Body:
{
name: "Srebalaji",
details: [
{
"type": "email",
"email": "srebalaji@example.com",
"tag": "personal"
}
]
}
{
name: "Srebalaji",
details: [
{
"type": "mobile",
"mobile": "1234567890",
"tag": "work"
}
]
}
PUT /contact/:id
{
name: "Srebalaji",
details: [
{
"type": "email",
"email": "srebalaji@example.com",
"tag": "personal"
}
]
}
DELETE /contact/:id
GET /group
POST /group
Body:
{
"name": "Work",
"contacts": [
"5cb8775807f6572aaac2f97c"
]
}
PUT /group/:id
{
"name": "Work",
"contacts": [
"5cb8775807f6572aaac2f97c"
]
}
DELETE /group/:id