A lightweight command-line contact management application built with Node.js. Manage your contacts directly from the terminal — no UI, no fluff.
- View all saved contacts
- Add a new contact
- Edit an existing contact
- Delete a contact
- Persistent storage via a local JSON file
- Runtime — Node.js
- Storage — JSON flat file
- Architecture — MVC (Model / View / Controller)
- Node.js v14 or higher
- Clone the repository
git clone https://github.com/your-username/console-contact-book.git
cd console-contact-book- Install dependencies
npm install- Start the application
npm startOnce running, you will be presented with a menu:
====================
CONSOLE CONTACT BOOK
====================
Please select:
1. View Contacts
2. Add Contact
3. Delete Contact
4. Edit Contact
5. Close Program
====================
Navigate by entering the number of your desired action and following the prompts.
console-contact-book/
├── app.js # Entry point
├── model.js # Data layer — reads and writes contacts.json
├── view.js # Presentation layer — console UI and menus
├── controller.js # Logic layer — handles user input and actions
├── contacts.json # Persistent contact storage
└── package.json
Contacts are stored in contacts.json in the following format:
[
{
"name": "Jane Doe",
"phone": "10111",
"email": "jane@example.com"
}
]This project is open source and available under the ISC License.