How sivayeti/e-mart works
This is a React e-commerce storefront: shoppers browse category listings, filter mobile products, open a mobile’s detail route, add it to a shared cart, and view or remove cart items. The graph also covers the home-page category showcases and the broader category catalog. Several category pages, showcase components, and data modules are represented by their source directories; their relationships are included only where the SOURCE INDEX records imports. No backend or persistent store is evidenced.
Main entry points: App.jsx Route dispatch · Navbar.jsx Category navigation · MobilePage.jsx Mobile listing · MobileSingle.jsx Mobile details
Components 12
Application routing
- React bootstrap
src/main.jsx - Route dispatch
src/App.jsx
Product browsing
- Home page
src/stores/pages/LandingPage.jsx - Category navigation
src/stores/components/Navbar.jsx - Category pages
src/stores/pages - Mobile listing
src/stores/pages/MobilePage.jsx - Mobile details
src/singles/MobileSingle.jsx - Home showcases
src/stores/components
Product catalog
- Product datasets
src/stores/data
Cart state
- Cart state
src/stores/context/CartContext.jsx - Cart view
src/stores/UserCart.jsx
Other components
- Shopper
Connections 22
- Shopper → Route dispatch: opens storefront
src/App.jsx - React bootstrap → Route dispatch: renders
src/main.jsx - React bootstrap → Cart state: wraps app
src/main.jsx - Route dispatch → Home page: routes to
src/App.jsx - Route dispatch → Category pages: routes to
src/App.jsx - Route dispatch → Mobile listing: routes to
src/App.jsx - Route dispatch → Mobile details: routes to
src/App.jsx - Route dispatch → Cart view: routes to
src/App.jsx - Home page → Category navigation: uses
src/stores/pages/LandingPage.jsx - Home page → Home showcases: renders
src/stores/pages/LandingPage.jsx - Home showcases → Product datasets: reads datasets
src/stores/components/Products.jsx - Category pages → Category navigation: uses
src/stores/pages/AcPage.jsx - Category pages → Product datasets: reads datasets
src/stores/pages/ComputerPage.jsx - Mobile listing → Category navigation: uses
src/stores/pages/MobilePage.jsx - Mobile listing → Product datasets: filters products
src/stores/pages/MobilePage.jsx - Mobile listing → Mobile details: links products
src/stores/pages/MobilePage.jsx - Mobile details → Product datasets: finds product
src/singles/MobileSingle.jsx - Mobile details → Cart state: adds product
src/singles/MobileSingle.jsx - Category navigation → Cart state: reads item count
src/stores/components/Navbar.jsx - Category navigation → Cart view: links cart
src/stores/components/Navbar.jsx - Cart view → Category navigation: uses
src/stores/UserCart.jsx - Cart view → Cart state: reads and removes
src/stores/UserCart.jsx