/phone-book

Phone Book is a CRUD built with Vite, Typescript and React

Primary LanguageTypeScript

Phone Book - A CRUD Application with React and TypeScript

This project is a simple phone book application that allows users to Create, Read, Update, and Delete (CRUD) contacts. Each contact has a unique ID, name, and phone number.

The application is built using the following technologies:

  • React (v18.2.0): A JavaScript library for building user interfaces.
  • TypeScript (v5.0.2): A typed superset of JavaScript that compiles to plain JavaScript.
  • Vite (v4.3.9): A build tool that aims to provide a faster and leaner development experience for modern web projects.

Prerequisites

  • Node.js
  • npm

Project setup

  1. Clone the repository:

    git clone https://github.com/g5l/phone-book.git
    
  2. Navigate into the project directory:

    cd phone-book
    
  3. Install the dependencies:

    npm install
    

Available Scripts

  • npm run dev: Runs the app in development mode with hot-reloading enabled.
  • npm run build: Compiles TypeScript files and builds the app for production to the dist folder.
  • npm run lint: Lints and checks the code for any syntax errors.
  • npm run preview: Starts a local server for previewing the production build.