How codewithjayesh/fullstack_marble_shop works
This is a React storefront for a marble atelier, with product discovery, product details, cart and checkout, plus editorial and informational pages. The user enters through the routed app, browses a mock product catalog, can add items to cart or wishlist, then reviews the cart and reaches checkout. Shared in-memory store state supports cart, wishlist, modal and toast behavior. The README is only the default React/Vite template; source-index references support some unsampled page composition, so links are omitted where implementation details are unavailable.
Main entry points: App.jsx App and routes · StoreContext.jsx Store state · Products.jsx Product listing · mockData.js Product and content data
Components 19
Application shell
- App and routes
src/App.jsx
Catalog and content
- Home experience
src/pages/Home.jsx - Catalog pages
src/pages - Product listing
src/pages/Products.jsx - Product detail
src/pages/ProductDetails.jsx - Product and content data
src/data/mockData.js - Catalog filters
src/components/FilterSidebar.jsx - Product search
src/components/SearchBar.jsx - Product cards
src/components/ProductCard.jsx
Shopping state
- Cart review
src/pages/Cart.jsx - Checkout page
src/pages/Checkout.jsx - Wishlist page
src/pages/Wishlist.jsx - Store state
src/context/StoreContext.jsx - Product quick view
src/components/ProductModal.jsx - Action notifications
src/components/Toasts.jsx
Storefront engagement
- Navigation and theme
src/components/Navbar.jsx - AI assistant
src/components/AiAssistant.jsx - Shared storefront UI
src/components
Other components
- Store visitor
Connections 31
- Store visitor → App and routes: opens
- App and routes → Home experience: routes to
src/App.jsx - App and routes → Catalog pages: routes to
src/App.jsx - App and routes → Product listing: routes to
src/App.jsx - App and routes → Product detail: routes to
src/App.jsx - App and routes → Cart review: routes to
src/App.jsx - App and routes → Checkout page: routes to
src/App.jsx - App and routes → Wishlist page: routes to
src/App.jsx - App and routes → Store state: provides state
src/App.jsx - App and routes → Navigation and theme: renders
src/App.jsx - App and routes → Product quick view: renders
src/App.jsx - App and routes → Action notifications: renders
src/App.jsx - App and routes → AI assistant: renders
src/App.jsx - Home experience → Product and content data: uses content
src/pages/Home.jsx - Home experience → Shared storefront UI: renders sections
src/pages/Home.jsx - Product listing → Product and content data: filters products
src/pages/Products.jsx - Product listing → Catalog filters: uses filters
src/pages/Products.jsx - Product listing → Product search: renders search
src/pages/Products.jsx - Product listing → Product cards: renders cards
src/pages/Products.jsx - Product listing → Shared storefront UI: uses pagination
src/pages/Products.jsx - Product search → Store state: reads products
src/components/SearchBar.jsx - Product cards → Store state: dispatches actions
src/components/ProductCard.jsx - Product detail → Product and content data: reads catalog
src/pages/ProductDetails.jsx - Product detail → Store state: uses actions
src/pages/ProductDetails.jsx - Cart review → Store state: updates cart
src/pages/Cart.jsx - Checkout page → Store state: reads cart
src/pages/Checkout.jsx - Wishlist page → Store state: reads wishlist
src/pages/Wishlist.jsx - Product quick view → Store state: uses modal state
src/components/ProductModal.jsx - Action notifications → Store state: reads notifications
src/components/Toasts.jsx - Store state → Product and content data: seeds products
src/context/StoreContext.jsx - Navigation and theme → Store state: reads counts
src/components/Navbar.jsx