Skip to content

E-commerce web application built with React featuring product browsing, cart, order tracking functionality, and responsive UI. Guided project with custom experimentation.

Notifications You must be signed in to change notification settings

Tejasgaware17/react-ecommerce-website

Repository files navigation

React E-commerce App

A high-performance, responsive e-commerce application built with React 19. This project replicates the core shopping experience of Amazon, focusing on state management, dynamic UI updates, and clean architectural patterns. This project was developed under the professional guidance of the SuperSimpleDev React Course , where I mastered foundational concepts and then extended the application with custom enterprise-grade features and refactoring.


Acknowledgements

This project was created while following the tutorial:

https://youtu.be/TtPXvEcE11E

Additional experimentation, feature exploration, and custom modifications were implemented independently during development.


Screenshots

Homepage

Homepage

Mobile screen

Mobile-screens

Cart functionality

  • Cart item update, delete and delivery updates
  • Realtime payment summary updates

Update-cart

Add to cart feature

  • Handles Cart renders and update

Add-to-cart

Orders

Orders

Order tracking

Tracking


Tech Stack

  • Library: React 19
  • Build Tool: Vite
  • Testing: Vitest, React Testing Library
  • Styling: CSS3 (Flexbox, Grid, Responsive Design)
  • Version Control: Git & GitHub

Features

  • Product listing and browsing
  • Component-based architecture
  • Backend integration
  • Automated testing using Vitest
  • State management using React hooks
  • Search functionality
  • Add to cart / remove from cart functionality
  • Dynamic cart updates
  • Responsive layout
  • Interactive UI elements

My Contributions & Enhancements

I took this project beyond the standard tutorial requirements by implementing industry-standard practices and custom features:

1. Architectural Refactoring

  • Modular Component Design: I refactored the code into small, atomic components (e.g., ProductsGrid, CheckoutHeader, PaymentSummary). This improved readability and reusability.
  • Folder Structuring: Organized the src directory by components, pages, assets and utils

2. New Functionalities (Personal Work)

  • Search Engine: Developed a real-time search functionality that filters products as the user types.
  • Update Cart Feature: Implemented custom logic to allow users to update quantities directly within the cart view, rather than just adding/removing.
  • Responsive Improvements: Fixed several layout breaks on mobile and tablet views using pure CSS.

3. Stability & Quality Assurance

  • Defensive Programming: Implemented data validation checks. For example, added fallback UI and logic to handle missing product data or empty cart states gracefully to prevent app crashes.
  • UI Polishing: Added several minor UI elements (icons, hover effects, and loading states) to make the interface feel more premium and interactive.

2. Automated testing using Vitest

  • Unit Testing: Wrote test cases using Vitest and React Testing Library for core utilities and component rendering to ensure logic remains intact during future updates.
  • Integration Testing: Created test cases for functionalities like Add to Cart and Product Grid diaply for ensuring consistency and correctness.

Architecture Highlight

project-root
├── data/
├── public/
├── src/
│   ├── assets/
│   │   └── icons/
│   ├── components/
│   ├── pages/
│   │   ├── checkout/
│   │   ├── home/
│   │   ├── orders/
│   │   └── tracking/
│   ├── utils/
│   ├── App.jsx
│   └── Main.jsx
├── .gitignore
├── eslint.config.js
├── index.html
└── package.json

Installation

  1. Clone the repository: git clone https://github.com/Tejasgaware17/react-ecommerce-website.git
  2. Install dependencies: npm install
  3. Start the dev server: npm run dev

Learning Outcomes

  • Built a complete React application from scratch following guided learning
  • Improved understanding of component architecture
  • Implemented state management using hooks
  • Practiced debugging and feature experimentation
  • Explored customization beyond tutorial implementation

About

E-commerce web application built with React featuring product browsing, cart, order tracking functionality, and responsive UI. Guided project with custom experimentation.

Topics

Resources

Stars

Watchers

Forks