# mariam48-cpu/madinaty_app_ieee_2026 architecture

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

- Interactive diagram: https://gitdiagram.com/mariam48-cpu/madinaty_app_ieee_2026
- Repository: https://github.com/mariam48-cpu/madinaty_app_ieee_2026

## Overview

Madinaty is a Flutter café-discovery and booking app. Its user journey spans account access and preference setup, discovering cafés or generating an AI plan, reserving a table, and completing checkout; the app also supports pre-orders and digital passes. The graph preserves major documented capabilities and external integrations. Feature paths come from the tree and relationships from the README; the sampled source excerpts cover native runners, not Dart feature implementations, so no unshown Dart call graph is inferred.

Main entry points: [`lib/main.dart`](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/blob/main/lib/main.dart) (Flutter app), [`lib/features/checkout`](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/checkout) (Checkout and payments), [`lib/features/discovery`](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/discovery) (Café discovery), [`lib/features/booking`](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/booking) (Table booking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App foundation"]
  node_app_entry["Flutter app<br/>[main.dart]"]
  node_auth["Authentication"]
end

subgraph group_discovery["Explore and personalize"]
  node_home["Home recommendations"]
  node_personalization["Personalization"]
  node_discovery_feature["Café discovery"]
  node_cafe["Café and menu"]
  node_ai_planner["AI planner"]
end

subgraph group_transaction["Booking and orders"]
  node_booking["Table booking"]
  node_cart["Cart"]
  node_checkout["Checkout and payments"]
  node_pre_order["Pre-orders"]
end

subgraph group_engagement["Account and engagement"]
  node_favorites["Favorites"]
  node_reviews["Reviews and ratings"]
  node_notifications["Notifications"]
  node_profile["Profile management"]
end

node_user(("Café customer"))
node_places["Google Places"]
node_generative_ai["Google Generative AI"]
node_paymob["Paymob"]
node_cloudinary["Cloudinary"]
node_firebase[("Firebase services")]

node_user -->|"uses"| node_app_entry
node_app_entry -->|"provides access"| node_auth
node_app_entry -->|"presents recommendations"| node_home
node_personalization -->|"informs recommendations"| node_home
node_app_entry -->|"supports discovery"| node_discovery_feature
node_discovery_feature -->|"uses place integration"| node_places
node_discovery_feature -->|"opens café details"| node_cafe
node_app_entry -->|"offers planning"| node_ai_planner
node_ai_planner -->|"generates plans with"| node_generative_ai
node_user -->|"reserves table"| node_booking
node_booking -->|"proceeds to"| node_checkout
node_user -->|"adds products"| node_cart
node_checkout -->|"processes payment with"| node_paymob
node_checkout -->|"processes cart into"| node_pre_order
node_checkout -->|"confirms reservation"| node_booking
node_user -->|"saves favorites"| node_favorites
node_user -->|"submits reviews"| node_reviews
node_user -->|"views updates"| node_notifications
node_user -->|"manages account"| node_profile
node_profile -->|"uploads profile images"| node_cloudinary
node_auth -->|"uses authentication"| node_firebase
node_favorites -->|"persists favorites"| node_firebase
node_notifications -->|"stores notifications"| node_firebase

click node_app_entry "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/blob/main/lib/main.dart"
click node_auth "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/auth"
click node_home "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/home"
click node_personalization "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/personalization"
click node_discovery_feature "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/discovery"
click node_cafe "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/cafe"
click node_ai_planner "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/ai_planner"
click node_booking "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/booking"
click node_cart "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/cart"
click node_checkout "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/checkout"
click node_pre_order "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/pre_order"
click node_favorites "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/favorites"
click node_reviews "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/reviews"
click node_notifications "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/notifications"
click node_profile "https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/profile"

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_app_entry,node_auth toneBlue
class node_home,node_personalization,node_discovery_feature,node_cafe,node_ai_planner,node_firebase toneAmber
class node_booking,node_cart,node_checkout,node_pre_order toneMint
class node_favorites,node_reviews,node_notifications,node_profile toneRose
class node_user,node_places,node_generative_ai,node_paymob,node_cloudinary toneIndigo
```

## Components

### App foundation

- [Flutter app](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/blob/main/lib/main.dart): `lib/main.dart`
- [Authentication](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/auth): `lib/features/auth`

### Explore and personalize

- [Home recommendations](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/home): `lib/features/home`
- [Personalization](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/personalization): `lib/features/personalization`
- [Café discovery](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/discovery): `lib/features/discovery`
- [Café and menu](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/cafe): `lib/features/cafe`
- [AI planner](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/ai_planner): `lib/features/ai_planner`

### Booking and orders

- [Table booking](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/booking): `lib/features/booking`
- [Cart](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/cart): `lib/features/cart`
- [Checkout and payments](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/checkout): `lib/features/checkout`
- [Pre-orders](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/pre_order): `lib/features/pre_order`

### Account and engagement

- [Favorites](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/favorites): `lib/features/favorites`
- [Reviews and ratings](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/reviews): `lib/features/reviews`
- [Notifications](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/notifications): `lib/features/notifications`
- [Profile management](https://github.com/mariam48-cpu/madinaty_app_ieee_2026/tree/main/lib/features/profile): `lib/features/profile`

### Other components

- **Café customer**
- **Google Places**
- **Google Generative AI**
- **Paymob**
- **Cloudinary**
- **Firebase services**

## Connections

- Café customer → Flutter app: uses (evidence: `README.md`)
- Flutter app → Authentication: provides access (evidence: `README.md`)
- Flutter app → Home recommendations: presents recommendations (evidence: `README.md`)
- Personalization → Home recommendations: informs recommendations (evidence: `README.md`)
- Flutter app → Café discovery: supports discovery (evidence: `README.md`)
- Café discovery → Google Places: uses place integration (evidence: `README.md`)
- Café discovery → Café and menu: opens café details (evidence: `README.md`)
- Flutter app → AI planner: offers planning (evidence: `README.md`)
- AI planner → Google Generative AI: generates plans with (evidence: `README.md`)
- Café customer → Table booking: reserves table (evidence: `README.md`)
- Table booking → Checkout and payments: proceeds to (evidence: `README.md`)
- Café customer → Cart: adds products (evidence: `README.md`)
- Checkout and payments → Paymob: processes payment with (evidence: `README.md`)
- Checkout and payments → Pre-orders: processes cart into (evidence: `README.md`)
- Checkout and payments → Table booking: confirms reservation (evidence: `README.md`)
- Café customer → Favorites: saves favorites (evidence: `README.md`)
- Café customer → Reviews and ratings: submits reviews (evidence: `README.md`)
- Café customer → Notifications: views updates (evidence: `README.md`)
- Café customer → Profile management: manages account (evidence: `README.md`)
- Profile management → Cloudinary: uploads profile images (evidence: `README.md`)
- Authentication → Firebase services: uses authentication (evidence: `README.md`)
- Favorites → Firebase services: persists favorites (evidence: `README.md`)
- Notifications → Firebase services: stores notifications (evidence: `README.md`)
