Skip to content

MdIrfan-ul/Ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecommerce


Overview

Welcome to the E-Commerce Project! This project is a React-based e-commerce application that uses Redux for state management and my-json-server for a dummy API service.


Live


Features

Navbar

  • Displays the count of items in the cart.
  • Shows relevant navigation links.

All Products Page

  • Lists products fetched from the API.
  • Products can be edited inline by clicking the "pencil" button.
    • Alert/Notification: An alert or notification appears after editing a product.
  • Products can be deleted by clicking the "delete" button.
    • Alert/Notification: An alert or notification appears after deleting a product.
  • Sort products by price.
    • Sort Button: Sorts products by price.
    • Cross Button: Removes the sort filter when clicked.
  • Add products to the cart.

Create Page

  • Allows adding a new product to the database.
    • Alert/Notification: An alert or notification appears after adding a product.

Product Detail Page

  • Displays all details of a selected product.
  • Provides a button to add the product to the cart.

Cart Page

  • Displays all items in the cart.
  • Handles errors and success alerts.
  • Shows appropriate alerts for API errors and success.

Technologies Used

  • Frontend: React, CSS Modules, Toastify, Spinner-Material, React Router,Redux Toolkit

  • React: For building the user interface.

  • Redux: For state management.

  • my-json-server: For the dummy API service.

  • React-Router: For routing.


Installation

  1. Clone the Repository:

    git clone https://github.com/MdIrfan-ul/Ecommerce.git
  2. Navigate to the Project Directory: cd ecommerce

  3. Install Dependencies:

    npm install
  4. Dummy Json Server:

  • create db.json file on your repository.
  1. Start the Development Server:
    npm start

Configuration

  • Redux is used for state management. Data persistence is implemented to maintain cart items after a page refresh.

Usage

  • Navigate through the application using the Navbar.
  • Edit products inline on the All Products Page.
  • Delete products from the list.
  • Sort products by price and remove the sort filter.
  • Add products to the cart and manage them on the Cart Page.
  • Add new products using the Create Page.
  • View detailed information about products on the Product Detail Page.

Developed with ❤️ by [Mohamed Irfanullah M]


About

E-commerce application created using react.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published