How zongokenoch95/le_ci works
This is a Burkina Faso pâtisserie storefront with custom cake ordering, checkout, loyalty features, and an administration area. Customers browse products or configure a cake, manage a cart, and proceed through payment; staff manage products, orders, delivery settings, and loyalty operations. The React app routes these experiences, while shared cart state and an API client support them. The server exposes the backend and uses a SQLite-backed data layer. Some client-to-server wiring is inferred from API calls and is marked unverified because server routes were not excerpted.
Main entry points: App.tsx App Router · api.ts API Client · CartContext.tsx Cart State · Catalogue.tsx Catalogue
Components 21
Storefront
- App Router
src/app/App.tsx - Home
src/app/pages/Home.tsx - Catalogue
src/app/pages/Catalogue.tsx - Custom Cake Order
src/app/pages/CustomOrder.tsx - Promotions
src/app/pages/Promotions.tsx - Image Fallback
src/app/components/figma/ImageWithFallback.tsx
Cart and Checkout
- Cart State
src/app/context/CartContext.tsx - Cart Page
src/app/pages/Cart.tsx - Cart Drawer
src/app/components/CartDrawer.tsx - Payment
src/app/pages/Payment.tsx - Alternate Payment
src/app/pages/OtherPayment.tsx - Delivery Picker
src/app/components/DeliveryMapPicker.tsx - Phone Validation
src/app/utils/phoneValidation.ts
Loyalty
- Loyalty Page
src/app/pages/Loyalty.tsx
Administration
- Admin Login
src/app/pages/AdminLogin.tsx - Admin Dashboard
src/app/pages/AdminDashboard.tsx
Backend
- API Client
src/app/services/api.ts - Realtime Client
src/app/services/socket.ts - HTTP Server
server/index.js - SQLite Data Layer
server/db.js
Other components
- Customer
Connections 37
- Customer → App Router: opens storefront
src/app/App.tsx - App Router → Home: routes to
src/app/App.tsx - App Router → Catalogue: routes to
src/app/App.tsx - App Router → Custom Cake Order: routes to
src/app/App.tsx - App Router → Promotions: routes to
src/app/App.tsx - App Router → Cart Page: routes to
src/app/App.tsx - App Router → Payment: routes to
src/app/App.tsx - App Router → Alternate Payment: routes to
src/app/App.tsx - App Router → Loyalty Page: routes to
src/app/App.tsx - App Router → Admin Login: routes to
src/app/App.tsx - App Router → Admin Dashboard: routes to
src/app/App.tsx - App Router → Cart State: provides state
src/app/App.tsx - Custom Cake Order → Cart State: adds items
src/app/pages/CustomOrder.tsx - Cart Page → Cart State: uses cart
src/app/pages/Cart.tsx - Cart Page → API Client: calls API
src/app/pages/Cart.tsx - Cart Page → Phone Validation: validates phone
src/app/pages/Cart.tsx - Payment → API Client: calls API
src/app/pages/Payment.tsx - Payment → Realtime Client: joins order
src/app/pages/Payment.tsx - Payment → Phone Validation: validates phone
src/app/pages/Payment.tsx - Alternate Payment → API Client: calls API
src/app/pages/OtherPayment.tsx - Alternate Payment → Realtime Client: joins order
src/app/pages/OtherPayment.tsx - Alternate Payment → Phone Validation: validates phone
src/app/pages/OtherPayment.tsx - Loyalty Page → API Client: calls API
src/app/pages/Loyalty.tsx - Loyalty Page → Phone Validation: validates phone
src/app/pages/Loyalty.tsx - Admin Dashboard → API Client: calls API
src/app/pages/AdminDashboard.tsx - Admin Dashboard → Realtime Client: uses realtime
src/app/pages/AdminDashboard.tsx - Catalogue → API Client: loads products
src/app/pages/Catalogue.tsx - Catalogue → Cart State: adds items
src/app/pages/Catalogue.tsx - Home → Cart State: uses cart
src/app/pages/Home.tsx - Catalogue → Image Fallback: renders images
src/app/pages/Catalogue.tsx - Custom Cake Order → Image Fallback: renders images
src/app/pages/CustomOrder.tsx - Home → Image Fallback: renders images
src/app/pages/Home.tsx - Cart Drawer → Cart State: uses cart
src/app/components/CartDrawer.tsx - Cart Drawer → API Client: calls API
src/app/components/CartDrawer.tsx - Delivery Picker → API Client: calls API
src/app/components/DeliveryMapPicker.tsx - API Client → HTTP Server: HTTP requests
- HTTP Server → SQLite Data Layer: calls data layer
server/index.js