Giter VIP home page Giter VIP logo

phonebook's Introduction

PhoneBook Application

Overview

This is a simple console-based PhoneBook application written in C#. The application allows users to manage their contacts by adding, deleting, updating, and viewing contact information.

Features

  • Add Information: Add a new contact with name, email, and phone number.
  • Delete Information: Delete an existing contact by providing its ID.
  • Update Information: Update the details of an existing contact.
  • View All Information: Display all contacts stored in the PhoneBook.

Requirements

Installation

  1. Clone the repository to your local machine:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd PhoneBook
  3. Restore the dependencies:

    dotnet restore
  4. Update the database connection string in PostgresContext.cs to match your PostgreSQL database settings.

  5. Build the application:

    dotnet build
  6. Run the application:

    dotnet run

Usage

Upon running the application, you will be presented with a menu offering various options to manage your contacts. Use the arrow keys to navigate through the menu and press Enter to select an option.

  • Add Information: Enter the contact's name, email, and phone number. The application will validate the input before adding the contact.
  • Delete Information: Enter the ID of the contact you want to delete. Confirm the deletion when prompted.
  • Update Information: Enter the ID of the contact you want to update. Provide the new details for the contact.
  • View All Information: Display all contacts stored in the PhoneBook.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

phonebook's People

Contributors

nithieshm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.