Skip to content

Latest commit

Β 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

E-Commerce Store β€” React

A full-featured storefront built with React, integrating a live REST API, persistent cart state, and production-style UX patterns (loading states, error handling).

Live Demo Β Β·Β  Source Code


Overview

This project goes beyond a typical portfolio storefront by fetching real product data from a live API instead of static mock data, and handling the edge cases that come with it β€” loading states, failed requests, and persisted user state across sessions.


Tech Stack

Category Tools
Core React 19, React Router
State Management Context API
Data DummyJSON REST API (fetch), error handling with try/catch
Animation Framer Motion
UI Feedback React Hot Toast
Carousel Swiper
Styling CSS

Key Features

  • Live product data β€” fetched from the DummyJSON API with proper error handling for failed requests
  • Skeleton loading states β€” dedicated loading components (SlideProductLoading, ProductDetailsLoading) instead of blank screens while data loads
  • Persistent cart & favorites β€” state is saved to localStorage, so items survive page reloads
  • Full cart logic β€” add, remove, increase/decrease quantity, all managed through Context API
  • Product discovery β€” category browsing, search, and filtering
  • Responsive, animated UI β€” mobile-first layout with Framer Motion transitions and toast notifications for user feedback

Getting Started

git clone https://github.com/omar-khatab/E-commerce.git
cd E-commerce
npm install
npm run dev

Author

Omar Khatab β€” Frontend Developer (React / Next.js)

Portfolio Β Β·Β  LinkedIn Β Β·Β  GitHub

About

πŸ›’ E-Commerce Store β€” React + Context API + Framer Motion | Cart, wishlist, filtering, search, responsive grid, checkout UI | Live: e-commerce-three-coral-58.vercel.app

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages