Skip to content

AdendorffL/Mini-Project-Console-Contact-Book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📒 Console Contact Book

A lightweight command-line contact management application built with Node.js. Manage your contacts directly from the terminal — no UI, no fluff.


Features

  • View all saved contacts
  • Add a new contact
  • Edit an existing contact
  • Delete a contact
  • Persistent storage via a local JSON file

Tech Stack

  • Runtime — Node.js
  • Storage — JSON flat file
  • Architecture — MVC (Model / View / Controller)

Getting Started

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/your-username/console-contact-book.git
cd console-contact-book
  1. Install dependencies
npm install
  1. Start the application
npm start

Usage

Once 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.


Project Structure

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

Data Format

Contacts are stored in contacts.json in the following format:

[
  {
    "name": "Jane Doe",
    "phone": "10111",
    "email": "jane@example.com"
  }
]

License

This project is open source and available under the ISC License.

About

A command-line contact management app built with Node.js

Topics

Resources

License

Stars

Watchers

Forks

Contributors