How mofadl237/testrestora works
Restora is a customer-facing, localized restaurant website template backed by the Restora Public API. Customers browse branch-aware home and menu content, configure products in a persisted cart, submit checkout to create an order, then view or track that order; separate flows support delivery-zone selection and reservations. The internal layers are RTK Query for tenant-scoped server data and the pricing engine for derived cart totals. The README documents these capabilities; unsampled route and feature implementations are represented at their existing directories, and edges are limited to relationships shown in excerpts or documented there.
Main entry points: publicApi.ts Public API client · HomeClient.tsx Home experience · CheckoutForm.tsx Checkout · CartSlice.ts Cart state
Components 20
Browse restaurant
- Home experience
src/Components/Home/HomeClient.tsx - Hero slider
src/Components/Slider/HeroController.tsx - Menu browsing
src/Components/Menu/MenuPageClient.tsx - Restaurant story
src/Components/About
Cart and checkout
- Cart state
src/store/features/CartSlice.ts - Checkout
src/Components/Cart/ShoppingCart/CheckoutForm.tsx - Delivery zones
src/Components/Cart/DeliveryZones - Pricing engine
src/lib/pricing
Orders and tracking
- Order confirmation
app/[locale]/(website)/orders/[orderId]/OrderDetailsClient.tsx - Order tracking
src/Components/TrackOrder/TrackOrderClient.tsx - Order documents
src/Components/Documents
Guest services
- Reservations
src/Components/Reservations/PublicReservations.tsx - Contact
src/Components/Contact
Data and runtime
- Public API client
src/store/api/publicApi.ts - Redux store
src/store/store.ts - Branch selection
src/store/features/BranchSlice.ts - Locale routing
src/i18n/routing.ts
Other components
- Guest
- Restora Public API
- Browser storage
Connections 22
- Guest → Home experience: visits
- Guest → Menu browsing: browses
README.md - Guest → Cart state: configures
README.md - Guest → Reservations: books
README.md - Home experience → Public API client: queries home data
src/Components/Home/HomeClient.tsx - Home experience → Branch selection: reads active branch
src/Components/Home/HomeClient.tsx - Hero slider → Guest: shows slides
src/Components/Slider/HeroController.tsx - Menu browsing → Guest: shows products
src/Components/Menu/MenuPageClient.tsx - Cart state → Browser storage: persists items
README.md - Checkout → Cart state: reads inputs
README.md - Checkout → Pricing engine: derives totals
README.md - Checkout → Public API client: creates order
README.md - Delivery zones → Public API client: queries zones
README.md - Reservations → Public API client: queries and creates
README.md - Order tracking → Public API client: looks up orders
src/Components/TrackOrder/TrackOrderClient.tsx - Order confirmation → Order documents: opens invoice
app/[locale]/(website)/orders/[orderId]/OrderDetailsClient.tsx - Public API client → Restora Public API: sends requests
src/store/api/publicApi.ts - Branch selection → Browser storage: persists selection
src/store/features/BranchSlice.ts - Redux store → Public API client: registers API reducer
README.md - Guest → Restaurant story: views story
- Guest → Contact: contacts restaurant
README.md - Locale routing → Home experience: routes locales
README.md