How vishakeaswar/flame-kart works
Flame Kart is a React storefront. A shopper lands on the home page, searches or filters the catalog, opens a product, and can save it to a wishlist or cart; the cart supports quantity changes and totals. Product data is served from a bundled JSON file, while cart and wishlist state live in browser localStorage and custom events refresh navigation counts. The excerpts show these page-level interactions; checkout is only a button, with no checkout implementation evidenced.
Main entry points: App.js Route Shell · HomePage.jsx Home & Search · ProductPage.jsx Product Listing · ProductView.jsx Product Detail
Components 12
App Shell
- React Entry
src/index.js - Route Shell
src/App.js - Footer
src/pages/Footer.jsx - Navigation
src/pages/NavBar.jsx
Product Discovery
- Home & Search
src/pages/HomePage.jsx - Product Listing
src/pages/ProductPage.jsx - Product Detail
src/pages/ProductView.jsx - Product Catalog
public/products.json
Other components
- Shopper
Connections 20
- Shopper → React Entry: opens storefront
src/index.js - React Entry → Route Shell: renders
src/index.js - Route Shell → Home & Search: routes home
src/App.js - Route Shell → Product Listing: routes listing
src/App.js - Route Shell → Wishlist: routes wishlist
src/App.js - Route Shell → Cart: routes cart
src/App.js - Route Shell → Product Detail: routes detail
src/App.js - Route Shell → Footer: renders
src/App.js - Home & Search → Product Listing: renders
src/pages/HomePage.jsx - Home & Search → Product Catalog: fetches categories
src/pages/HomePage.jsx - Product Listing → Product Detail: navigates to
src/pages/ProductPage.jsx - Product Detail → Product Catalog: loads product
src/pages/ProductView.jsx - Product Listing → Browser Storage: reads/writes cart and wishlist
src/pages/ProductPage.jsx - Product Detail → Browser Storage: reads/writes cart and wishlist
src/pages/ProductView.jsx - Cart → Browser Storage: reads/writes cart
src/pages/CartPage.jsx - Wishlist → Browser Storage: reads/writes wishlist and cart
src/pages/WishlistPage.jsx - Navigation → Browser Storage: reads counts
src/pages/NavBar.jsx - Home & Search → Wishlist: navigates
src/pages/HomePage.jsx - Home & Search → Cart: navigates
src/pages/HomePage.jsx - Shopper → Home & Search: searches catalog
src/pages/HomePage.jsx