How gopalmaheshwari18/amazon-clone works
This is a client-rendered Amazon-style storefront, not a commerce backend: users browse a static product catalog, search or filter it, add items to an in-memory cart, and inspect a subtotal in a drawer. App.jsx owns filtering, cart state, and composition; the child components render the storefront stages. The README gives no further product capabilities, and no persistence, checkout processing, or external commerce service is evidenced. Source excerpts show component calls, but not browser entry wiring in main.jsx.
Main entry points: App.jsx Storefront state · Navbar.jsx Search navigation · productCard.jsx Product card · product.js Product catalog
Components 10
Storefront browsing
- Storefront state
src/App.jsx - Product catalog
src/data/product.js - Search navigation
src/Components/Navbar.jsx - Filtered product grid
src/App.jsx - Product card
src/Components/productCard.jsx
Cart experience
- In-memory cart
src/App.jsx - Cart drawer
src/Components/Cartdrawer.jsx
Storefront presentation
- Promotional banner
src/Components/Herobanner.jsx - Storefront footer
src/Components/Footer.jsx
Other components
- Shopper
Connections 13
- Shopper → Search navigation: enters search
src/Components/Navbar.jsx - Search navigation → Storefront state: updates search
src/App.jsx - Storefront state → Product catalog: filters products
src/App.jsx - Storefront state → Filtered product grid: renders results
src/App.jsx - Filtered product grid → Product card: renders cards
src/App.jsx - Product card → Storefront state: adds product
src/App.jsx - Storefront state → In-memory cart: updates items
src/App.jsx - In-memory cart → Search navigation: passes count
src/App.jsx - In-memory cart → Cart drawer: passes items
src/App.jsx - Shopper → Storefront state: chooses category
src/App.jsx - Shopper → Storefront state: opens cart
src/App.jsx - Shopper → Promotional banner: views offers
- Shopper → Storefront footer: views footer