How beshoy-05/e-commerce works
This is a React storefront whose main shopping flow is browsing or searching the catalog, opening product details, managing cart or wishlist state, and checking out to an order confirmation. App owns route setup and shared search/cart/wishlist state; the cart is persisted locally. Login and registration, contact, home content, and support chat are additional product areas. Relationships are based on the README and shown excerpts or SOURCE INDEX references; unsampled implementation details and any real payment processing are not inferred.
Main entry points: App.jsx Routes and State · Shop.jsx Shop Page · CartContext.js Cart State · ProductDetails.jsx Product Details
Components 25
App Shell
- Routes and State
src/App.jsx - Search State
src/context/search.js - Cart State
src/context/CartContext.js - Wishlist State
src/context/WishlistContext.js - Browser Storage
Catalog
- Shop Page
src/pages/Shop/Shop.jsx - Search Bar
src/components/SearchBar/SearchBar.jsx - Category Filter
src/components/Filter/Filter.jsx - Filter Logic
src/utils/FilterLogic.js - Product API
src/services/api.js - DummyJSON Products
- Product Card
src/components/ProductCard/ProductCard.jsx
Shopping
- Product Details
src/pages/ProductDetails/ProductDetails.jsx - Cart Page
src/pages/Cart/Cart.jsx - Checkout
src/pages/Checkout/Checkout.jsx - Order Confirmation
src/pages/Checkout/ThankYou.jsx - Wishlist Page
src/pages/Wishlist/Wishlist.jsx
Customer Features
- Home Page
src/pages/Home/Home.jsx - Contact Page
src/pages/Contact/Contact.jsx - Contact Content
src/components/Contact/ContactContent/ContactContent.jsx - Login
src/pages/Login/Login.jsx - Registration
src/pages/Register/Register.jsx - Auth Input
src/components/AuthInput/AuthInput.jsx - Support Chat
src/components/SupportChat/SupportChat.jsx
Other components
- Shopper
Connections 39
- Shopper → Routes and State: uses storefront
src/App.jsx - Routes and State → Shop Page: routes to
src/App.jsx - Routes and State → Home Page: routes to
src/App.jsx - Routes and State → Cart Page: routes to
src/App.jsx - Routes and State → Checkout: routes to
src/App.jsx - Routes and State → Order Confirmation: routes to
src/App.jsx - Routes and State → Product Details: routes to
src/App.jsx - Routes and State → Wishlist Page: routes to
src/App.jsx - Routes and State → Contact Page: routes to
src/App.jsx - Routes and State → Login: routes to
src/App.jsx - Routes and State → Registration: routes to
src/App.jsx - Routes and State → Search State: provides state
src/App.jsx - Routes and State → Cart State: provides state
src/App.jsx - Routes and State → Wishlist State: provides state
src/App.jsx - Routes and State → Browser Storage: persists cart and wishlist
src/App.jsx - Shop Page → Filter Logic: loads products through
src/pages/Shop/Shop.jsx - Filter Logic → Product API: fetches catalog data
src/utils/FilterLogic.js - Product API → DummyJSON Products: requests products
src/services/api.js - Shop Page → Search State: reads filters
src/pages/Shop/Shop.jsx - Shop Page → Category Filter: renders
src/pages/Shop/Shop.jsx - Shop Page → Product Card: renders results
src/pages/Shop/Shop.jsx - Category Filter → Product API: loads categories
src/components/Filter/Filter.jsx - Category Filter → Search State: updates filters
src/components/Filter/Filter.jsx - Search Bar → Search State: sets search
- Product Card → Wishlist State: updates wishlist
src/components/ProductCard/ProductCard.jsx - Product Details → Product API: loads product
src/pages/ProductDetails/ProductDetails.jsx - Product Details → Cart State: updates cart
src/pages/ProductDetails/ProductDetails.jsx - Product Details → Wishlist State: updates wishlist
src/pages/ProductDetails/ProductDetails.jsx - Cart Page → Cart State: reads and updates
src/pages/Cart/Cart.jsx - Cart Page → Checkout: navigates to
src/pages/Cart/Cart.jsx - Checkout → Cart State: reads and clears
src/pages/Checkout/Checkout.jsx - Checkout → Order Confirmation: navigates to
src/pages/Checkout/Checkout.jsx - Wishlist Page → Wishlist State: reads wishlist
src/pages/Wishlist/Wishlist.jsx - Wishlist Page → Cart State: updates cart
src/pages/Wishlist/Wishlist.jsx - Contact Page → Contact Content: renders
src/pages/Contact/Contact.jsx - Login → Auth Input: renders fields
src/pages/Login/Login.jsx - Registration → Auth Input: renders fields
src/pages/Register/Register.jsx - Shopper → Search Bar: searches catalog
- Shopper → Support Chat: uses support chat