How bhimnath/cakeonwheels works
Cake on Wheels is a responsive cake marketplace with buyer ordering, seller listing and order management, and administrator oversight. The main buyer flow is browsing and selecting a cake, managing a cart, then checking out with the documented Cash on Delivery option. React page routing and shared application state coordinate the experience; that state uses Supabase when configured and falls back to browser storage. README capabilities include discounts, order-stage tracking, promotions, and logistics controls. The API/server and some dashboard behavior are included as product components, but their internal connections are not inferred from filenames.
Main entry points: App.jsx Page Router · AppContext.jsx Marketplace State · Home.jsx Cake Catalog · CakeCard.jsx Cake Card
Components 20
Buyer Shopping
- Page Router
src/App.jsx - Cake Catalog
src/pages/Home.jsx - Cake Card
src/components/CakeCard.jsx - Cake Details
src/pages/CakeDetails.jsx - Shopping Cart
src/pages/Cart.jsx - Checkout
src/pages/Checkout.jsx - Buyer Dashboard
src/pages/BuyerDashboard.jsx
Accounts and Operations
- Buyer Auth
src/pages/Auth.jsx - Seller Auth
src/pages/SellerAuth.jsx - Partner Portal
src/pages/PartnerAuth.jsx - Seller Dashboard
src/pages/SellerDashboard.jsx - Admin Auth
src/pages/AdminAuth.jsx - Admin Dashboard
src/pages/AdminDashboard.jsx
Application State
- Marketplace State
src/context/AppContext.jsx
Runtime Services
- Browser Storage
- Supabase Client
src/supabaseClient.js - Supabase
- API Service
api/index.js - Server Service
server.js
Other components
- Buyer
Connections 28
- Buyer → Page Router: uses
- Page Router → Cake Catalog: routes to
src/App.jsx - Page Router → Cake Details: routes to
src/App.jsx - Page Router → Shopping Cart: routes to
src/App.jsx - Page Router → Checkout: routes to
src/App.jsx - Page Router → Buyer Auth: routes to
src/App.jsx - Page Router → Seller Auth: routes to
src/App.jsx - Page Router → Admin Auth: routes to
src/App.jsx - Page Router → Partner Portal: routes to
src/App.jsx - Page Router → Buyer Dashboard: routes to
src/App.jsx - Page Router → Seller Dashboard: routes to
src/App.jsx - Page Router → Admin Dashboard: routes to
src/App.jsx - Page Router → Marketplace State: provides state
src/App.jsx - Cake Catalog → Cake Card: renders
src/pages/Home.jsx - Cake Card → Marketplace State: adds to cart
src/components/CakeCard.jsx - Buyer Auth → Marketplace State: authenticates via
src/pages/Auth.jsx - Seller Auth → Marketplace State: authenticates via
src/pages/SellerAuth.jsx - Partner Portal → Marketplace State: authenticates via
src/pages/PartnerAuth.jsx - Admin Auth → Marketplace State: authenticates via
src/pages/AdminAuth.jsx - Buyer Dashboard → Marketplace State: uses state
src/pages/BuyerDashboard.jsx - Seller Dashboard → Marketplace State: uses state
src/pages/SellerDashboard.jsx - Admin Dashboard → Marketplace State: uses state
src/pages/AdminDashboard.jsx - Cake Details → Marketplace State: uses state
src/pages/CakeDetails.jsx - Shopping Cart → Marketplace State: uses state
src/pages/Cart.jsx - Checkout → Marketplace State: uses state
src/pages/Checkout.jsx - Marketplace State → Supabase Client: uses client
src/context/AppContext.jsx - Supabase Client → Supabase: connects to
src/supabaseClient.js - Marketplace State → Browser Storage: persists locally
src/context/AppContext.jsx