Skip to content

singh-abhinay/react-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ React E-Commerce App

A modern, scalable E-Commerce web application built with React and Vite. This project demonstrates real-world frontend architecture including product listing, cart management, routing, and API integration.


πŸ”— Live Repository

πŸ‘‰ https://github.com/singh-abhinay/react-ecommerce


πŸ“Œ Features

  • πŸ›οΈ Browse products with dynamic listing
  • πŸ” Search and filter products
  • πŸ“„ Product detail page
  • πŸ›’ Add to cart / remove from cart
  • πŸ”’ Update product quantity
  • πŸ’° Price calculation (subtotal, total)
  • πŸ”” Toast notifications for actions
  • πŸ“± Fully responsive UI

🧠 Key Highlights

  • Clean and scalable folder structure
  • Reusable components
  • State management (Context API / Redux if used)
  • API integration using Axios
  • Optimized rendering with React hooks

πŸ› οΈ Tech Stack

  • Frontend: React 19, Vite
  • Routing: React Router
  • HTTP Client: Axios
  • UI: Bootstrap, React Icons
  • Notifications: React Toastify
  • Loader: React Spinners

πŸ“‚ Project Structure

src/
│── components/        # Reusable UI components
│── pages/             # Page-level components
│── context/           # Global state (Cart / Auth)
│── services/          # API calls
│── assets/            # Images & static files
│── App.jsx
│── main.jsx

βš™οΈ Installation & Setup

1. Clone the repository

git clone https://github.com/singh-abhinay/react-ecommerce.git
cd react-ecommerce

2. Install dependencies

npm install

3. Start development server

npm run dev

4. Build for production

npm run build

5. Preview production build

npm run preview

πŸ›’ Core Functionalities

🧾 Product Listing

  • Fetch products from API
  • Display in grid layout
  • Responsive design

πŸ“„ Product Details

  • View detailed product info
  • Price, description, image

πŸ›οΈ Cart Management

  • Add items to cart
  • Remove items
  • Update quantity
  • Calculate total price

πŸ” Search & Filter

  • Search products by name
  • Dynamic filtering

πŸ”„ API Integration

  • Uses Axios for API requests
  • Handles loading and error states
  • Structured service layer for scalability

⚑ Performance Optimizations

  • Memoization using useMemo / useCallback
  • Efficient state updates
  • Component reusability

πŸš€ Future Improvements

  • πŸ” Authentication (Login / Signup)
  • πŸ’³ Payment integration (Stripe/Razorpay)
  • πŸ“¦ Order management system
  • ❀️ Wishlist feature
  • 🌍 Multi-language support
  • ⚑ Server-side rendering (Next.js)

πŸ§ͺ Testing (Planned)

  • Unit testing with Jest
  • Component testing with React Testing Library

πŸ“Έ Screenshots

homepage product-listing product_page cartpage wishlist-page checkout-page login registration

πŸ‘¨β€πŸ’» Author

Abhinay Pratap Singh


πŸ’‘ Notes

This project showcases:

  • Real-world React development practices
  • Scalable component architecture
  • State management patterns
  • Clean UI/UX implementation

⭐ If you like this project, don’t forget to star the repository!

About

React, Context API, State Management, API Integration, Axios, Product Listing, Shopping Cart, Cart Management, Search Filtering, Dynamic Pricing, React Router, Responsive Design, Bootstrap UI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors