How hazem-mohamed-ismail/value-clothes-ecommerce works
Amerce is a React clothing storefront. Shoppers enter through routed pages, browse API-backed products, filter and inspect product details, then manage cart or wishlist state and proceed to a presentation-only checkout. Account, editorial, and brand-content pages form separate branches. The runtime layer centers on shared React contexts for product data and cart, drawer, and wishlist state. Arrows follow the sampled route/provider wiring and documented capabilities; unsampled component internals are represented without inferred call chains.
Main entry points: App.jsx Routes and shell · main.jsx Context providers · CartSystem.jsx Cart state · ShoppingPage.jsx Shop and filters
Components 28
App shell
- Routes and shell
src/App.jsx - Context providers
src/main.jsx - Product API state
src/context/ProductFromApi.jsx
Product discovery
- Shop and filters
src/pages/ShoppingPage/ShoppingPage.jsx - Filter controls
src/components/ShoppingPage/Filters/Filters.jsx - Product cards
src/components/common/ProductCard/ProductCard.jsx - Product details
src/components/ProductPage/ProductDetails/ProductDetails.jsx - Size guide
src/components/ProductPage/SizeGuide/SizeGuide.jsx - Home merchandising
src/pages/Home/Home.jsx
Cart and checkout
- Cart state
src/context/CartSystem.jsx - Cart persistence
- Drawer visibility
src/context/SideNavCart.jsx - Cart drawer
src/components/common/ShoppingCartDrawer/ShoppingCartDrawer.jsx - Shopping cart
src/pages/ShoppingCartPage/ShoppingCartPage.jsx - Checkout form
src/components/CheckOut/CheckoutForm.jsx - Wishlist state
src/context/WishlistSystem.jsx - Wishlist persistence
- Wishlist page
src/pages/Wishlist/Wishlist.jsx
Account and content
- Account pages
src/pages/PageAccount/PageAccount.jsx - Account settings
src/components/Account/contents/SettingContent.jsx - Address management
src/components/Account/contents/MyAddressContent.jsx - Login form
src/pages/LogIn/LogIn.jsx - Blog listing
src/pages/Blog/BlogPage.jsx - Blog post
src/pages/BlogSingle/BlogSingle.jsx - About and team
src/pages/About/About.jsx - Contact form
src/pages/Contact/Contact.jsx
Other components
- Shopper
- Fake Store API
Connections 36
- Shopper → Routes and shell: browses
src/App.jsx - Routes and shell → Home merchandising: routes to
src/App.jsx - Routes and shell → Shop and filters: routes to
src/App.jsx - Routes and shell → Product details: routes to
src/App.jsx - Routes and shell → Shopping cart: routes to
src/App.jsx - Routes and shell → Checkout form: routes to
src/App.jsx - Routes and shell → Wishlist page: routes to
src/App.jsx - Routes and shell → Account pages: routes to
src/App.jsx - Routes and shell → Blog listing: routes to
src/App.jsx - Routes and shell → Blog post: routes to
src/App.jsx - Routes and shell → About and team: routes to
src/App.jsx - Routes and shell → Contact form: routes to
src/App.jsx - Routes and shell → Login form: routes to
src/App.jsx - Routes and shell → Cart drawer: renders
src/App.jsx - Context providers → Routes and shell: wraps
src/main.jsx - Context providers → Product API state: mounts
src/main.jsx - Context providers → Cart state: mounts
src/main.jsx - Context providers → Drawer visibility: mounts
src/main.jsx - Context providers → Wishlist state: mounts
src/main.jsx - Product API state → Fake Store API: fetches products
src/context/ProductFromApi.jsx - Shop and filters → Product API state: reads products
src/pages/ShoppingPage/ShoppingPage.jsx - Shop and filters → Filter controls: renders controls
src/pages/ShoppingPage/ShoppingPage.jsx - Shop and filters → Product cards: renders products
src/pages/ShoppingPage/ShoppingPage.jsx - Product details → Size guide: includes guide
src/pages/ProductPage/ProductPage.jsx - Product cards → Cart state: adds items
src/components/common/ProductCard/ProductCard.jsx - Product cards → Wishlist state: toggles items
src/components/common/ProductCard/ProductCard.jsx - Cart state → Cart persistence: persists
src/context/CartSystem.jsx - Wishlist state → Wishlist persistence: persists
src/context/WishlistSystem.jsx - Cart drawer → Drawer visibility: uses visibility
- Shopping cart → Cart state: reads cart
src/pages/ShoppingCartPage/ShoppingCartPage.jsx - Checkout form → Cart state: checkout contents
- Wishlist page → Wishlist state: reads wishlist
src/pages/Wishlist/Wishlist.jsx - Wishlist page → Product API state: resolves products
src/pages/Wishlist/Wishlist.jsx - Account pages → Account settings: shows settings
src/pages/PageAccount/PageAccount.jsx - Account pages → Address management: shows addresses
src/pages/PageAccount/PageAccount.jsx - About and team → Home merchandising: reuses reviews
src/pages/About/About.jsx