Skip to content

Repository files navigation

ShopCart - E-commerce Project with React

Welcome to ShopCart, a complete e-commerce application built with React. This project features a login page, product listing with filters, product details, a persistent shopping cart, and a checkout page.

Table of Contents

Features

  • Login Page: User authentication with email and password validation.
  • Product Listing: Fetches and displays a list of products from the fakestoreapi.com.
  • Product Filtering: Filter products by category.
  • Product Details: Displays detailed information for each product, including image, title, price, description, and rating.
  • Shopping Cart: Add and remove products from the cart. The cart persists during the user's session using localStorage.
  • Real-time Total: The total price is updated in real-time as items are added to or removed from the cart.
  • Checkout: A summary of the purchase with the total price and the option to finalize the order.

Technologies Used

  • JavaScript: The primary programming language for the application's logic and interactivity.
  • React: A JavaScript library for building user interfaces.
  • React Router: For declarative routing in the application.
  • Vite: A fast build tool for modern web development.
  • CSS: For styling the components.
  • HTML: The standard markup language used to create the structure of the web pages.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

You need to have Node.js and npm (or yarn) installed on your machine.

Installation

  1. Clone the repo
    git clone [https://github.com/your-username/your-repository.git](https://github.com/your-username/your-repository.git)
  2. Navigate to the project directory
    cd your-repository
  3. Install NPM packages
    npm install
  4. Run the development server
    npm run dev

The application will be available at http://localhost:5173.

Screenshots

readme readme readme readme readme readme readme

About

This e-commerce project in React simulates a complete shopping flow, with login , product listing from an API , a persistent shopping cart , and checkout.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages