Skip to content

mufeed-dev/Contact-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Contact Manager App

A full-stack React contact management application with CRUD operations, search functionality, and REST API.

Features

  • βœ… Add, edit, view, and delete contacts
  • βœ… Real-time search and filtering
  • βœ… React Router for navigation
  • βœ… JSON Server backend API
  • βœ… Responsive UI with Semantic UI

Tech Stack

  • Frontend: React, React Router, Semantic UI
  • Backend: JSON Server
  • State Management: React Hooks (useState, useEffect)

Project Structure

contact-app/
β”œβ”€β”€ contact-app/          # React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/   # React components
β”‚   β”‚   └── App.js        # Main app component
β”‚   └── package.json
└── server-api/           # JSON Server backend
    β”œβ”€β”€ db.json           # Database file
    └── package.json

Getting Started

Prerequisites

  • Node.js
  • npm or yarn

Installation

  1. Clone the repository

    git clone https://github.com/mufeed-dev/Contact-App.git
    cd Contact-App
  2. Install frontend dependencies

    cd contact-app
    npm install
  3. Install backend dependencies

    cd ../server-api
    npm install

Running the Application

  1. Start the backend server

    cd server-api
    npm start

    Server runs on http://localhost:3001

  2. Start the frontend

    cd contact-app
    npm start

    App runs on http://localhost:3000

Usage

  • View Contacts: See all contacts on the home page
  • Add Contact: Click "Add Contact" to create new contacts
  • Search: Use the search bar to filter contacts
  • Edit/Delete: Use the edit/delete icons on each contact card
  • View Details: Click on a contact to see detailed view

API Endpoints

  • GET /contacts - Get all contacts
  • POST /contacts - Create new contact
  • PUT /contacts/:id - Update contact
  • DELETE /contacts/:id - Delete contact

License

MIT License


About

React contact manager with CRUD operations, search, and JSON Server API πŸ‘₯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors