How madhumithra-r/creme-and-crust works
Crème & Crust is a bakery storefront implemented as a client-side React application. Customers browse featured products or the shop, view product details, add items to a shared cart, and proceed through a simulated checkout to an order confirmation. The app also includes bakery information and contact pages. Cart state and order details persist in browser local storage. The README is empty; unsampled page behavior is represented only where the source index identifies its imports, so the graph omits uncertain integrations and operational details.
Main entry points: App.jsx Route Shell · products.js Product Data · CartContext.jsx Cart State · Button.jsx Button
Components 20
Application Shell
- Route Shell
src/App.jsx - About Page
src/pages/About.jsx - Contact Page
src/pages/Contact.jsx
Bakery Catalog
- Home
src/pages/Home.jsx - Shop
src/pages/Shop.jsx - Product Details
src/pages/ProductDetails.jsx - Product Data
src/data/products.js
Cart and Checkout
- Cart Page
src/pages/Cart.jsx - Checkout
src/pages/Checkout.jsx - Order Confirmation
src/pages/OrderSuccess.jsx - Cart State
src/context/CartContext.jsx - Browser Storage
Shared UI and Content
- Navigation
src/components/Navbar.jsx - Footer
src/components/Footer.jsx - Cart Notifications
src/components/Toast.jsx - Product Card
src/components/ProductCard.jsx - Category Card
src/components/CategoryCard.jsx - Cart Item
src/components/CartItem.jsx - Button
src/components/Button.jsx
Other components
- Customer
Connections 43
- Customer → Route Shell: opens storefront
- Route Shell → Home: routes to
src/App.jsx - Route Shell → Shop: routes to
src/App.jsx - Route Shell → Product Details: routes to
src/App.jsx - Route Shell → Cart Page: routes to
src/App.jsx - Route Shell → Checkout: routes to
src/App.jsx - Route Shell → Order Confirmation: routes to
src/App.jsx - Route Shell → About Page: routes to
src/App.jsx - Route Shell → Contact Page: routes to
src/App.jsx - Route Shell → Navigation: renders
src/App.jsx - Route Shell → Footer: renders
src/App.jsx - Route Shell → Cart Notifications: renders
src/App.jsx - Home → Product Data: reads catalog
src/pages/Home.jsx - Home → Product Card: renders products
src/pages/Home.jsx - Home → Category Card: renders categories
src/pages/Home.jsx - Shop → Product Data: reads catalog
src/pages/Shop.jsx - Shop → Product Card: renders products
src/pages/Shop.jsx - Product Details → Product Data: reads product
src/pages/ProductDetails.jsx - Product Details → Product Card: renders related products
src/pages/ProductDetails.jsx - Product Card → Cart State: adds item
src/components/ProductCard.jsx - Product Card → Product Data: uses image fallback
src/components/ProductCard.jsx - Navigation → Cart State: reads cart count
src/components/Navbar.jsx - Navigation → Product Data: reads categories
src/components/Navbar.jsx - Cart Page → Cart State: reads and updates
src/pages/Cart.jsx - Cart Page → Cart Item: renders entries
src/pages/Cart.jsx - Cart Item → Cart State: updates item
src/components/CartItem.jsx - Cart Item → Product Data: uses product data
src/components/CartItem.jsx - Checkout → Cart State: reads cart and saves order
src/pages/Checkout.jsx - Checkout → Product Data: uses product data
src/pages/Checkout.jsx - Order Confirmation → Cart State: reads saved order
src/pages/OrderSuccess.jsx - Order Confirmation → Product Data: uses product data
src/pages/OrderSuccess.jsx - Cart State → Browser Storage: persists cart and order
src/context/CartContext.jsx - Cart Notifications → Cart State: reads notification state
src/components/Toast.jsx - Footer → Product Data: reads bakery content
src/components/Footer.jsx - About Page → Product Data: reads bakery content
src/pages/About.jsx - Contact Page → Button: uses controls
src/pages/Contact.jsx - Home → Button: uses controls
src/pages/Home.jsx - About Page → Button: uses controls
src/pages/About.jsx - Checkout → Button: uses controls
src/pages/Checkout.jsx - Cart Page → Button: uses controls
src/pages/Cart.jsx - Product Details → Button: uses controls
src/pages/ProductDetails.jsx - Shop → Button: uses controls
src/pages/Shop.jsx - Order Confirmation → Button: uses controls
src/pages/OrderSuccess.jsx