# renukaprasadbs454/foodie-frontend architecture

> Architecture diagram of the GitHub repository renukaprasadbs454/foodie-frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/renukaprasadbs454/foodie-frontend
- Repository: https://github.com/renukaprasadbs454/foodie-frontend

## Overview

Foodie Frontend is a workspace of customer, restaurant, delivery, and admin applications, with shared React Native and web utilities. The customer journey centers on browsing restaurants and menus, building a cart, checking out, and tracking orders; the delivery and restaurant apps support fulfillment, while admin provides operational oversight. Source excerpts show app composition and selected shared/runtime links; many feature implementations were not sampled, so their internal connections are not inferred.

Main entry points: [`apps/admin/app`](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/app) (Admin console), [`apps/delivery/src/core/App.tsx`](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/delivery/src/core/App.tsx) (Delivery app), [`apps/restaurant/src/app/App.tsx`](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/restaurant/src/app/App.tsx) (Restaurant app), [`apps/customer/src/core/App.tsx`](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/core/App.tsx) (Foodie customer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer app"]
  node_customer["Foodie customer<br/>[App.tsx]"]
  node_customer_nav["Customer navigation<br/>[RootNavigator.tsx]"]
  node_customer_browse["Restaurant discovery"]
  node_customer_menu["Menus and cart"]
  node_customer_checkout["Checkout and payment"]
  node_customer_orders["Orders and tracking"]
  node_customer_auth["Customer sign-in"]
  node_customer_api["Customer API<br/>[baseApi.ts]"]
end

subgraph group_restaurant["Restaurant app"]
  node_restaurant_app["Restaurant app<br/>[App.tsx]"]
  node_restaurant_orders["Restaurant orders"]
  node_restaurant_profile["Restaurant profile"]
  node_restaurant_reviews["Restaurant reviews"]
  node_restaurant_legacy["Restaurant web UI<br/>[App.js]"]
end

subgraph group_delivery["Delivery app"]
  node_delivery_app["Delivery app<br/>[App.tsx]"]
  node_delivery_home["Offers and assignments"]
  node_delivery_kyc["Courier verification"]
  node_delivery_navigation["Delivery navigation"]
  node_delivery_wallet["Courier wallet"]
  node_delivery_api["Delivery API<br/>[deliveryApi.ts]"]
end

subgraph group_admin["Admin app"]
  node_admin_app["Admin console"]
  node_admin_orders["Order operations"]
  node_admin_restaurants["Restaurant oversight"]
  node_admin_analytics["Analytics"]
  node_admin_darkstore["Darkstore operations"]
  node_admin_finance["Finance and payouts"]
  node_admin_auth["Admin authentication<br/>[route.ts]"]
end

subgraph group_shared["Shared libraries"]
  node_shared_rn["Shared mobile utilities"]
  node_shared_web["Shared web utilities"]
end

node_customer_actor(("Customer"))
node_restaurant_actor(("Restaurant staff"))
node_courier_actor(("Courier"))
node_admin_actor(("Administrator"))

node_customer_actor -->|"uses"| node_customer
node_customer -->|"renders"| node_customer_nav
node_customer_nav -->|"routes to"| node_customer_auth
node_customer_nav -->|"routes to"| node_customer_browse
node_customer_orders -->|"uses"| node_customer_api
node_customer_api -->|"uses types"| node_customer_checkout
node_customer_actor -.->|"browses"| node_customer_browse
node_customer_browse -.->|"opens"| node_customer_menu
node_customer_menu -.->|"continues to"| node_customer_checkout
node_customer_checkout -.->|"creates order"| node_customer_orders
node_restaurant_actor -->|"uses"| node_restaurant_app
node_restaurant_app -.->|"supports"| node_restaurant_orders
node_restaurant_app -.->|"supports"| node_restaurant_profile
node_restaurant_app -.->|"supports"| node_restaurant_reviews
node_courier_actor -->|"uses"| node_delivery_app
node_delivery_app -.->|"routes to"| node_delivery_home
node_delivery_app -.->|"routes to"| node_delivery_kyc
node_delivery_app -.->|"routes to"| node_delivery_navigation
node_delivery_app -.->|"routes to"| node_delivery_wallet
node_delivery_navigation -->|"sends location"| node_delivery_api
node_admin_actor -->|"uses"| node_admin_app
node_admin_app -.->|"provides login"| node_admin_auth
node_admin_app -.->|"supports"| node_admin_orders
node_admin_app -.->|"supports"| node_admin_restaurants
node_admin_app -.->|"supports"| node_admin_analytics
node_admin_app -.->|"supports"| node_admin_darkstore
node_admin_app -.->|"supports"| node_admin_finance
node_customer -->|"uses utilities"| node_shared_rn
node_delivery_app -->|"uses utilities"| node_shared_rn
node_restaurant_app -->|"uses utilities"| node_shared_rn

click node_customer "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/core/App.tsx"
click node_customer_nav "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/navigation/RootNavigator.tsx"
click node_customer_browse "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/restaurants"
click node_customer_menu "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/menu"
click node_customer_checkout "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/checkout"
click node_customer_orders "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/orders"
click node_customer_auth "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/auth"
click node_customer_api "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/api/baseApi.ts"
click node_restaurant_app "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/restaurant/src/app/App.tsx"
click node_restaurant_orders "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/restaurant/src/features/orders"
click node_restaurant_profile "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/restaurant/src/features/profile"
click node_restaurant_reviews "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/restaurant/src/features/reviews"
click node_restaurant_legacy "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/restaurant/frontend/src/App.js"
click node_delivery_app "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/delivery/src/core/App.tsx"
click node_delivery_home "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/home"
click node_delivery_kyc "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/kyc"
click node_delivery_navigation "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/navigation"
click node_delivery_wallet "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/wallet"
click node_delivery_api "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/delivery/src/api/endpoints/deliveryApi.ts"
click node_admin_app "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/app"
click node_admin_orders "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/orders"
click node_admin_restaurants "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/restaurants"
click node_admin_analytics "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/analytics"
click node_admin_darkstore "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/darkstore"
click node_admin_finance "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/delivery-payouts"
click node_admin_auth "https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/admin/app/api/auth/login/route.ts"
click node_shared_rn "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/packages/shared-rn/src"
click node_shared_web "https://github.com/renukaprasadbs454/foodie-frontend/tree/main/packages/shared-web/src"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_customer,node_customer_nav,node_customer_browse,node_customer_menu,node_customer_checkout,node_customer_orders,node_customer_auth,node_customer_api toneBlue
class node_restaurant_app,node_restaurant_orders,node_restaurant_profile,node_restaurant_reviews,node_restaurant_legacy toneAmber
class node_delivery_app,node_delivery_home,node_delivery_kyc,node_delivery_navigation,node_delivery_wallet,node_delivery_api toneMint
class node_admin_app,node_admin_orders,node_admin_restaurants,node_admin_analytics,node_admin_darkstore,node_admin_finance,node_admin_auth toneRose
class node_shared_rn,node_shared_web,node_customer_actor,node_restaurant_actor,node_courier_actor,node_admin_actor toneIndigo
```

## Components

### Customer app

- [Foodie customer](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/core/App.tsx): `apps/customer/src/core/App.tsx`
- [Customer navigation](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/navigation/RootNavigator.tsx): `apps/customer/src/navigation/RootNavigator.tsx`
- [Restaurant discovery](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/restaurants): `apps/customer/src/features/restaurants`
- [Menus and cart](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/menu): `apps/customer/src/features/menu`
- [Checkout and payment](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/checkout): `apps/customer/src/features/checkout`
- [Orders and tracking](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/orders): `apps/customer/src/features/orders`
- [Customer sign-in](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/customer/src/features/auth): `apps/customer/src/features/auth`
- [Customer API](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/customer/src/api/baseApi.ts): `apps/customer/src/api/baseApi.ts`

### Restaurant app

- [Restaurant app](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/restaurant/src/app/App.tsx): `apps/restaurant/src/app/App.tsx`
- [Restaurant orders](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/restaurant/src/features/orders): `apps/restaurant/src/features/orders`
- [Restaurant profile](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/restaurant/src/features/profile): `apps/restaurant/src/features/profile`
- [Restaurant reviews](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/restaurant/src/features/reviews): `apps/restaurant/src/features/reviews`
- [Restaurant web UI](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/restaurant/frontend/src/App.js): `apps/restaurant/frontend/src/App.js`

### Delivery app

- [Delivery app](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/delivery/src/core/App.tsx): `apps/delivery/src/core/App.tsx`
- [Offers and assignments](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/home): `apps/delivery/src/features/home`
- [Courier verification](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/kyc): `apps/delivery/src/features/kyc`
- [Delivery navigation](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/navigation): `apps/delivery/src/features/navigation`
- [Courier wallet](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/delivery/src/features/wallet): `apps/delivery/src/features/wallet`
- [Delivery API](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/delivery/src/api/endpoints/deliveryApi.ts): `apps/delivery/src/api/endpoints/deliveryApi.ts`

### Admin app

- [Admin console](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/app): `apps/admin/app`
- [Order operations](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/orders): `apps/admin/features/orders`
- [Restaurant oversight](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/restaurants): `apps/admin/features/restaurants`
- [Analytics](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/analytics): `apps/admin/features/analytics`
- [Darkstore operations](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/darkstore): `apps/admin/features/darkstore`
- [Finance and payouts](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/apps/admin/features/delivery-payouts): `apps/admin/features/delivery-payouts`
- [Admin authentication](https://github.com/renukaprasadbs454/foodie-frontend/blob/main/apps/admin/app/api/auth/login/route.ts): `apps/admin/app/api/auth/login/route.ts`

### Shared libraries

- [Shared mobile utilities](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/packages/shared-rn/src): `packages/shared-rn/src`
- [Shared web utilities](https://github.com/renukaprasadbs454/foodie-frontend/tree/main/packages/shared-web/src): `packages/shared-web/src`

### Other components

- **Customer**
- **Restaurant staff**
- **Courier**
- **Administrator**

## Connections

- Customer → Foodie customer: uses (evidence: `README.md`)
- Foodie customer → Customer navigation: renders (evidence: `apps/customer/src/core/App.tsx`)
- Customer navigation → Customer sign-in: routes to (evidence: `apps/customer/src/navigation/RootNavigator.tsx`)
- Customer navigation → Restaurant discovery: routes to (evidence: `apps/customer/src/navigation/RootNavigator.tsx`)
- Orders and tracking → Customer API: uses (evidence: `apps/customer/src/api/endpoints/ordersApi.ts`)
- Customer API → Checkout and payment: uses types (evidence: `apps/customer/src/api/endpoints/ordersApi.ts`)
- Customer → Restaurant discovery: browses
- Restaurant discovery → Menus and cart: opens
- Menus and cart → Checkout and payment: continues to
- Checkout and payment → Orders and tracking: creates order
- Restaurant staff → Restaurant app: uses (evidence: `README.md`)
- Restaurant app → Restaurant orders: supports
- Restaurant app → Restaurant profile: supports
- Restaurant app → Restaurant reviews: supports
- Courier → Delivery app: uses (evidence: `README.md`)
- Delivery app → Offers and assignments: routes to
- Delivery app → Courier verification: routes to
- Delivery app → Delivery navigation: routes to
- Delivery app → Courier wallet: routes to
- Delivery navigation → Delivery API: sends location (evidence: `apps/delivery/src/features/navigation/hooks/useLocationPingLoop.ts`)
- Administrator → Admin console: uses (evidence: `README.md`)
- Admin console → Admin authentication: provides login
- Admin console → Order operations: supports
- Admin console → Restaurant oversight: supports
- Admin console → Analytics: supports
- Admin console → Darkstore operations: supports
- Admin console → Finance and payouts: supports
- Foodie customer → Shared mobile utilities: uses utilities (evidence: `apps/customer/src/core/App.tsx`)
- Delivery app → Shared mobile utilities: uses utilities (evidence: `apps/delivery/src/core/App.tsx`)
- Restaurant app → Shared mobile utilities: uses utilities (evidence: `apps/restaurant/src/app/App.tsx`)
