Skip to content

IrinaSemenovaa/react-phonebook

Repository files navigation

Phonebook

This project serves as the starting point for your application, built using React. It includes user registration, login, and contact management functionality.

Features

  • User registration and login.
  • User profile updating.
  • Private collection of contacts.
  • Managing user contacts.

Backend

This project uses a backend server that supports all the necessary operations for managing a collection of contacts, as well as user registration, login, and profile updating using JSON Web Tokens (JWT).

Installation

To run this project on your local machine, follow these steps:

  1. Clone this repository to your local machine.
  2. Make sure you have Node.js and npm installed.
  3. In the project's root directory, run npm install to install the required dependencies.
  4. Start the development server with npm start.

Routes

The project uses React Router for routing. It has the following routes:

  • /register: Public route for user registration with a form.
  • /login: Public route for user login with a form.
  • /contacts: Private route for managing the user's contact list.

Usage

After setting up the project locally, you can use the following routes to interact with the application:

  • /register: Create a new user account.
  • /login: Log in to an existing user account.
  • /contacts: View, add, edit, and delete contacts.