# wasimranacse/foodfindr-uk architecture

> Architecture diagram of the GitHub repository wasimranacse/foodfindr-uk, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wasimranacse/foodfindr-uk
- Repository: https://github.com/wasimranacse/foodfindr-uk

## Overview

FoodFindr is a scaffolded restaurant discovery, trust, offers, and promotion platform with a React client and Django REST backend. The intended customer path is browse/search, inspect a restaurant, then use an action such as saving or claiming an offer; owners and admins have separate management areas. The source tree implements several domain apps, while some README capabilities remain planned rather than represented by dedicated modules. Edges reflect shown frontend calls or README-described API contracts; unsampled backend internals are not assumed to call one another.

Main entry points: [`backend/apps/restaurants/models.py`](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/restaurants/models.py) (Restaurant profiles), [`frontend/src/routes/App.jsx`](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/routes/App.jsx) (Route dispatch), [`frontend/src/api/client.js`](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/api/client.js) (API client), [`backend/apps/offers/models.py`](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/offers/models.py) (Offers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_router["Route dispatch<br/>[App.jsx]"]
  node_authui["Sign-in flows<br/>[AuthPages.jsx]"]
  node_authstate["Auth context<br/>[AuthContext.jsx]"]
  node_api["API client<br/>[client.js]"]
  node_browse["Restaurant search"]
  node_detail["Restaurant detail"]
  node_dashboard["Role dashboards<br/>[DashboardPages.jsx]"]
end

subgraph group_catalog["Restaurant catalog"]
  node_restaurant[("Restaurant profiles<br/>[models.py]")]
  node_locations[("Location data<br/>[models.py]")]
  node_menus[("Menus<br/>[models.py]")]
end

subgraph group_engagement["Customer engagement"]
  node_offers[("Offers<br/>[models.py]")]
  node_reviews[("Reviews<br/>[models.py]")]
  node_favourites["Favourites<br/>[views.py]"]
  node_analytics["CTA analytics<br/>[views.py]"]
end

subgraph group_platform["Identity and platform"]
  node_users[("Accounts and roles<br/>[models.py]")]
  node_security["Verification and audit<br/>[services.py]"]
  node_integrations["External integrations"]
  node_database[("Configured database<br/>[base.py]")]
end

node_visitor(("Customer or owner"))

node_visitor -->|"opens pages"| node_router
node_router -->|"routes to"| node_browse
node_router -->|"routes to"| node_detail
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_authui
node_authui -->|"invokes login"| node_authstate
node_authstate -->|"requests profile"| node_api
node_browse -->|"loads restaurants"| node_api
node_api -.->|"requests REST data"| node_restaurant
node_api -.->|"requests offers"| node_offers
node_api -.->|"auth requests"| node_users
node_restaurant -.->|"location hierarchy"| node_locations
node_visitor -.->|"saves restaurants"| node_favourites
node_visitor -.->|"submits reviews"| node_reviews
node_visitor -.->|"records CTA events"| node_analytics
node_users -.->|"uses verification"| node_security
node_restaurant -.->|"owner-submitted menus"| node_menus
node_restaurant -.->|"owner-managed offers"| node_offers
node_integrations -.->|"supports links"| node_restaurant
node_restaurant -.->|"persists domain data"| node_database
node_offers -.->|"persists domain data"| node_database

click node_router "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/routes/App.jsx"
click node_authui "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/AuthPages.jsx"
click node_authstate "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/context/AuthContext.jsx"
click node_api "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/api/client.js"
click node_browse "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/RestaurantsPage.jsx"
click node_detail "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/RestaurantDetailPage.jsx"
click node_dashboard "https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/DashboardPages.jsx"
click node_restaurant "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/restaurants/models.py"
click node_locations "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/locations/models.py"
click node_menus "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/menus/models.py"
click node_offers "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/offers/models.py"
click node_reviews "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/reviews/models.py"
click node_favourites "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/favourites/views.py"
click node_analytics "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/analytics/views.py"
click node_users "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/users/models.py"
click node_security "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/security/services.py"
click node_integrations "https://github.com/wasimranacse/foodfindr-uk/tree/main/backend/apps/integrations/services"
click node_database "https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/config/settings/base.py"

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_router,node_authui,node_authstate,node_api,node_browse,node_detail,node_dashboard toneBlue
class node_restaurant,node_locations,node_menus toneAmber
class node_offers,node_reviews,node_favourites,node_analytics toneMint
class node_users,node_security,node_integrations,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Web experience

- [Route dispatch](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/routes/App.jsx): `frontend/src/routes/App.jsx`
- [Sign-in flows](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/AuthPages.jsx): `frontend/src/pages/AuthPages.jsx`
- [Auth context](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [API client](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`
- [Restaurant search](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/RestaurantsPage.jsx): `frontend/src/pages/RestaurantsPage.jsx`
- [Restaurant detail](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/RestaurantDetailPage.jsx): `frontend/src/pages/RestaurantDetailPage.jsx`
- [Role dashboards](https://github.com/wasimranacse/foodfindr-uk/blob/main/frontend/src/pages/DashboardPages.jsx): `frontend/src/pages/DashboardPages.jsx`

### Restaurant catalog

- [Restaurant profiles](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/restaurants/models.py): `backend/apps/restaurants/models.py`
- [Location data](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/locations/models.py): `backend/apps/locations/models.py`
- [Menus](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/menus/models.py): `backend/apps/menus/models.py`

### Customer engagement

- [Offers](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/offers/models.py): `backend/apps/offers/models.py`
- [Reviews](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/reviews/models.py): `backend/apps/reviews/models.py`
- [Favourites](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/favourites/views.py): `backend/apps/favourites/views.py`
- [CTA analytics](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/analytics/views.py): `backend/apps/analytics/views.py`

### Identity and platform

- [Accounts and roles](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/users/models.py): `backend/apps/users/models.py`
- [Verification and audit](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/apps/security/services.py): `backend/apps/security/services.py`
- [External integrations](https://github.com/wasimranacse/foodfindr-uk/tree/main/backend/apps/integrations/services): `backend/apps/integrations/services`
- [Configured database](https://github.com/wasimranacse/foodfindr-uk/blob/main/backend/config/settings/base.py): `backend/config/settings/base.py`

### Other components

- **Customer or owner**

## Connections

- Customer or owner → Route dispatch: opens pages (evidence: `frontend/src/routes/App.jsx`)
- Route dispatch → Restaurant search: routes to (evidence: `frontend/src/routes/App.jsx`)
- Route dispatch → Restaurant detail: routes to (evidence: `frontend/src/routes/App.jsx`)
- Route dispatch → Role dashboards: routes to (evidence: `frontend/src/routes/App.jsx`)
- Route dispatch → Sign-in flows: routes to (evidence: `frontend/src/routes/App.jsx`)
- Sign-in flows → Auth context: invokes login (evidence: `frontend/src/pages/AuthPages.jsx`)
- Auth context → API client: requests profile (evidence: `frontend/src/context/AuthContext.jsx`)
- Restaurant search → API client: loads restaurants (evidence: `frontend/src/api/client.js`)
- API client → Restaurant profiles: requests REST data (evidence: `README.md`)
- API client → Offers: requests offers (evidence: `README.md`)
- API client → Accounts and roles: auth requests (evidence: `README.md`)
- Restaurant profiles → Location data: location hierarchy (evidence: `README.md`)
- Customer or owner → Favourites: saves restaurants (evidence: `README.md`)
- Customer or owner → Reviews: submits reviews (evidence: `README.md`)
- Customer or owner → CTA analytics: records CTA events (evidence: `README.md`)
- Accounts and roles → Verification and audit: uses verification (evidence: `README.md`)
- Restaurant profiles → Menus: owner-submitted menus (evidence: `README.md`)
- Restaurant profiles → Offers: owner-managed offers (evidence: `README.md`)
- External integrations → Restaurant profiles: supports links (evidence: `README.md`)
- Restaurant profiles → Configured database: persists domain data (evidence: `backend/config/settings/base.py`)
- Offers → Configured database: persists domain data (evidence: `backend/config/settings/base.py`)
