# hemachandran-d45/eventmanagementapp architecture

> Architecture diagram of the GitHub repository hemachandran-d45/eventmanagementapp, 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/hemachandran-d45/eventmanagementapp
- Repository: https://github.com/hemachandran-d45/eventmanagementapp

## Overview

Event Business Manager is a mobile-first event-operations PWA with a FastAPI backend. The main workflow is to enter a booking, manage its event lifecycle and service checklist, record payments and expenses, then monitor schedules, balances and business finances. The README also describes customer CRM, global search, PDF billing and WhatsApp sharing, and a public enquiry site. Several frontend and backend modules are represented from the tree and README; their internal connections are omitted where sampled code does not establish them.

Main entry points: [`backend/app/main.py`](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/main.py) (FastAPI application), [`frontend/src/services/api.ts`](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/services/api.ts) (Typed API client), [`frontend/src/App.tsx`](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/App.tsx) (App navigation), [`backend/app/routers/billing.py`](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/billing.py) (Billing API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["PWA and public site"]
  node_app["App navigation<br/>[App.tsx]"]
  node_dashboard_ui["Daily dashboard<br/>[DashboardPage.tsx]"]
  node_calendar_ui["Event calendar<br/>[CalendarPage.tsx]"]
  node_order_ui["Quick order entry"]
  node_event_ui["Event detail hub"]
  node_crm_ui["Customer CRM<br/>[CustomersPage.tsx]"]
  node_finance_ui["Finance view<br/>[FinancePage.tsx]"]
  node_search_ui["Global search<br/>[SearchPage.tsx]"]
  node_public_site["Public enquiry site<br/>[PublicHomePage.tsx]"]
  node_service_catalog_ui["Service catalog"]
  node_api_client["Typed API client<br/>[api.ts]"]
end

subgraph group_operations["Event operations"]
  node_dashboard_api["Dashboard API<br/>[dashboard.py]"]
  node_events_api["Event API<br/>[events.py]"]
  node_customers_api["Customer API<br/>[customers.py]"]
  node_services_api["Service catalog API<br/>[services.py]"]
  node_other_api["Payments expenses search"]
  node_reminders["Reminder engine<br/>[reminder_engine.py]"]
  node_public_api["Public enquiry API<br/>[public.py]"]
end

subgraph group_finance["Billing and finance"]
  node_billing_api["Billing API<br/>[billing.py]"]
  node_pdf["PDF invoice generator<br/>[pdf_generator.py]"]
  node_whatsapp["WhatsApp messages"]
  node_finance_api["Finance API<br/>[finance.py]"]
end

subgraph group_backend["API and persistence"]
  node_entities["Business entities<br/>[entities.py]"]
  node_schemas["API schemas<br/>[schemas.py]"]
  node_database[("SQL database<br/>[database.py]")]
  node_server["FastAPI application<br/>[main.py]"]
end

node_operator(("Business operator"))

node_operator -->|"uses"| node_app
node_app -->|"renders"| node_dashboard_ui
node_app -->|"opens"| node_order_ui
node_app -->|"opens"| node_event_ui
node_app -->|"renders"| node_calendar_ui
node_app -->|"renders"| node_crm_ui
node_app -->|"renders"| node_finance_ui
node_app -->|"renders"| node_search_ui
node_app -->|"routes to"| node_public_site
node_order_ui -->|"calls"| node_api_client
node_event_ui -->|"calls"| node_api_client
node_service_catalog_ui -->|"calls"| node_api_client
node_dashboard_ui -->|"calls"| node_api_client
node_calendar_ui -->|"calls"| node_api_client
node_search_ui -->|"calls"| node_api_client
node_api_client -->|"requests"| node_dashboard_api
node_api_client -->|"requests"| node_events_api
node_api_client -->|"requests"| node_services_api
node_api_client -->|"submits inquiry"| node_public_api
node_server -->|"registers"| node_dashboard_api
node_server -->|"registers"| node_events_api
node_server -->|"registers"| node_customers_api
node_server -->|"registers"| node_services_api
node_server -->|"registers"| node_other_api
node_server -->|"registers"| node_billing_api
node_server -->|"registers"| node_finance_api
node_server -->|"registers"| node_public_api
node_server -->|"creates tables"| node_database
node_server -->|"seeds data"| node_entities
node_entities -->|"uses base"| node_database
node_dashboard_api -->|"computes alerts"| node_reminders
node_billing_api -->|"generates invoices"| node_pdf
node_billing_api -->|"builds messages"| node_whatsapp

click node_app "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/App.tsx"
click node_dashboard_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/DashboardPage.tsx"
click node_calendar_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/CalendarPage.tsx"
click node_order_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/components/events/QuickAddOrderModal.tsx"
click node_event_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/components/events/EventDetailModal.tsx"
click node_crm_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/CustomersPage.tsx"
click node_finance_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/FinancePage.tsx"
click node_search_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/SearchPage.tsx"
click node_public_site "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/public/PublicHomePage.tsx"
click node_service_catalog_ui "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/components/services/ServiceCatalogModal.tsx"
click node_api_client "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/services/api.ts"
click node_dashboard_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/dashboard.py"
click node_events_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/events.py"
click node_customers_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/customers.py"
click node_services_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/services.py"
click node_other_api "https://github.com/hemachandran-d45/eventmanagementapp/tree/main/backend/app/routers"
click node_reminders "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/services/reminder_engine.py"
click node_public_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/public.py"
click node_billing_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/billing.py"
click node_pdf "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/services/pdf_generator.py"
click node_whatsapp "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/services/whatsapp_service.py"
click node_finance_api "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/finance.py"
click node_entities "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/models/entities.py"
click node_schemas "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/schemas/schemas.py"
click node_database "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/database.py"
click node_server "https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/main.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_app,node_dashboard_ui,node_calendar_ui,node_order_ui,node_event_ui,node_crm_ui,node_finance_ui,node_search_ui,node_public_site,node_service_catalog_ui,node_api_client toneBlue
class node_dashboard_api,node_events_api,node_customers_api,node_services_api,node_other_api,node_reminders,node_public_api toneAmber
class node_billing_api,node_pdf,node_whatsapp,node_finance_api toneMint
class node_entities,node_schemas,node_database,node_server toneRose
class node_operator toneIndigo
```

## Components

### PWA and public site

- [App navigation](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Daily dashboard](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Event calendar](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/CalendarPage.tsx): `frontend/src/pages/CalendarPage.tsx`
- [Quick order entry](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/components/events/QuickAddOrderModal.tsx): `frontend/src/components/events/QuickAddOrderModal.tsx`
- [Event detail hub](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/components/events/EventDetailModal.tsx): `frontend/src/components/events/EventDetailModal.tsx`
- [Customer CRM](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/CustomersPage.tsx): `frontend/src/pages/CustomersPage.tsx`
- [Finance view](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/FinancePage.tsx): `frontend/src/pages/FinancePage.tsx`
- [Global search](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/pages/SearchPage.tsx): `frontend/src/pages/SearchPage.tsx`
- [Public enquiry site](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/public/PublicHomePage.tsx): `frontend/src/public/PublicHomePage.tsx`
- [Service catalog](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/components/services/ServiceCatalogModal.tsx): `frontend/src/components/services/ServiceCatalogModal.tsx`
- [Typed API client](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### Event operations

- [Dashboard API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/dashboard.py): `backend/app/routers/dashboard.py`
- [Event API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/events.py): `backend/app/routers/events.py`
- [Customer API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/customers.py): `backend/app/routers/customers.py`
- [Service catalog API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/services.py): `backend/app/routers/services.py`
- [Payments expenses search](https://github.com/hemachandran-d45/eventmanagementapp/tree/main/backend/app/routers): `backend/app/routers`
- [Reminder engine](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/services/reminder_engine.py): `backend/app/services/reminder_engine.py`
- [Public enquiry API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/public.py): `backend/app/routers/public.py`

### Billing and finance

- [Billing API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/billing.py): `backend/app/routers/billing.py`
- [PDF invoice generator](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/services/pdf_generator.py): `backend/app/services/pdf_generator.py`
- [WhatsApp messages](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/services/whatsapp_service.py): `backend/app/services/whatsapp_service.py`
- [Finance API](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/routers/finance.py): `backend/app/routers/finance.py`

### API and persistence

- [Business entities](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/models/entities.py): `backend/app/models/entities.py`
- [API schemas](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/schemas/schemas.py): `backend/app/schemas/schemas.py`
- [SQL database](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/database.py): `backend/app/database.py`
- [FastAPI application](https://github.com/hemachandran-d45/eventmanagementapp/blob/main/backend/app/main.py): `backend/app/main.py`

### Other components

- **Business operator**

## Connections

- Business operator → App navigation: uses (evidence: `README.md`)
- App navigation → Daily dashboard: renders (evidence: `frontend/src/App.tsx`)
- App navigation → Quick order entry: opens (evidence: `frontend/src/App.tsx`)
- App navigation → Event detail hub: opens (evidence: `frontend/src/App.tsx`)
- App navigation → Event calendar: renders (evidence: `frontend/src/App.tsx`)
- App navigation → Customer CRM: renders (evidence: `frontend/src/App.tsx`)
- App navigation → Finance view: renders (evidence: `frontend/src/App.tsx`)
- App navigation → Global search: renders (evidence: `frontend/src/App.tsx`)
- App navigation → Public enquiry site: routes to (evidence: `frontend/src/App.tsx`)
- Quick order entry → Typed API client: calls (evidence: `frontend/src/components/events/QuickAddOrderModal.tsx`)
- Event detail hub → Typed API client: calls (evidence: `frontend/src/components/events/EventDetailModal.tsx`)
- Service catalog → Typed API client: calls (evidence: `frontend/src/components/services/ServiceCatalogModal.tsx`)
- Daily dashboard → Typed API client: calls (evidence: `frontend/src/pages/DashboardPage.tsx`)
- Event calendar → Typed API client: calls (evidence: `frontend/src/pages/CalendarPage.tsx`)
- Global search → Typed API client: calls (evidence: `frontend/src/pages/SearchPage.tsx`)
- Typed API client → Dashboard API: requests (evidence: `frontend/src/services/api.ts`)
- Typed API client → Event API: requests (evidence: `frontend/src/services/api.ts`)
- Typed API client → Service catalog API: requests (evidence: `frontend/src/services/api.ts`)
- Typed API client → Public enquiry API: submits inquiry (evidence: `frontend/src/services/api.ts`)
- FastAPI application → Dashboard API: registers (evidence: `backend/app/main.py`)
- FastAPI application → Event API: registers (evidence: `backend/app/main.py`)
- FastAPI application → Customer API: registers (evidence: `backend/app/main.py`)
- FastAPI application → Service catalog API: registers (evidence: `backend/app/main.py`)
- FastAPI application → Payments expenses search: registers (evidence: `backend/app/main.py`)
- FastAPI application → Billing API: registers (evidence: `backend/app/main.py`)
- FastAPI application → Finance API: registers (evidence: `backend/app/main.py`)
- FastAPI application → Public enquiry API: registers (evidence: `backend/app/main.py`)
- FastAPI application → SQL database: creates tables (evidence: `backend/app/main.py`)
- FastAPI application → Business entities: seeds data
- Business entities → SQL database: uses base (evidence: `backend/app/models/entities.py`)
- Dashboard API → Reminder engine: computes alerts (evidence: `backend/app/routers/dashboard.py`)
- Billing API → PDF invoice generator: generates invoices (evidence: `backend/app/routers/billing.py`)
- Billing API → WhatsApp messages: builds messages (evidence: `backend/app/routers/billing.py`)
