# hemanthsure123/evnt_n_experience- architecture

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

- Interactive diagram: https://gitdiagram.com/hemanthsure123/evnt_n_experience-
- Repository: https://github.com/hemanthsure123/evnt_n_experience-

## Overview

This is an event ticketing and experience platform. Its principal money path runs from event discovery and organizer publishing through ticket inventory reservation, booking holds, payment confirmation, ticket issuance, gate check-in, and organizer settlement. Notifications deliver lifecycle messages asynchronously; shared composition and adapter layers connect application services to external providers. The README documents these flows and capabilities; source excerpts are partial, so links between domain stages are based on those documented relationships rather than inferred imports.

Main entry points: [`backend/apps/booking/services.py`](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/booking/services.py) (Booking lifecycle), [`backend/apps/payments/services.py`](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/payments/services.py) (Payment processing), [`backend/apps/events/services.py`](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/services.py) (Event authoring), [`backend/core/events.py`](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/events.py) (Domain events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Event catalog"]
  node_discovery["Event discovery<br/>[api.py]"]
  node_event_authoring["Event authoring<br/>[services.py]"]
  node_event_data[("Event records<br/>[models.py]")]
  node_event_queries["Event queries<br/>[repositories.py]"]
  node_taxonomy["Event taxonomy<br/>[taxonomy.py]"]
  node_organizations[("Organizations<br/>[repositories.py]")]
end

subgraph group_commerce["Booking and money"]
  node_ticketing["Ticket inventory<br/>[services.py]"]
  node_booking_ui["Checkout flow<br/>[step-review.tsx]"]
  node_booking["Booking lifecycle<br/>[services.py]"]
  node_booking_data[("Booking and tickets<br/>[models.py]")]
  node_payments["Payment processing<br/>[services.py]"]
  node_payment_records[("Payment records<br/>[repositories.py]")]
  node_gateway{{"Payment gateway"}}
end

subgraph group_operations["Event operations"]
  node_checkin["Gate check-in<br/>[services.py]"]
  node_notifications["Notifications<br/>[services.py]"]
  node_notification_templates["Message templates<br/>[templates.py]"]
  node_settlements["Organizer settlements<br/>[services.py]"]
end

subgraph group_foundation["Shared foundation"]
  node_application_wiring["Service composition<br/>[di.py]"]
  node_domain_events["Domain events<br/>[events.py]"]
  node_storage_port["Storage interface<br/>[storage_port.py]"]
  node_local_storage["Local storage adapter<br/>[local_storage.py]"]
end

node_attendee(("Attendee"))
node_organizer(("Organizer"))
node_operator(("Platform operator"))

node_attendee -->|"browses events"| node_discovery
node_organizer -->|"creates and publishes"| node_event_authoring
node_operator -->|"moderates"| node_event_authoring
node_discovery -->|"queries listings"| node_event_queries
node_event_queries -->|"reads events"| node_event_data
node_event_authoring -->|"writes events"| node_event_data
node_event_authoring -->|"checks ownership"| node_organizations
node_discovery -->|"filters categories"| node_taxonomy
node_attendee -->|"starts checkout"| node_booking_ui
node_booking_ui -->|"creates hold"| node_booking
node_booking -->|"reserves inventory"| node_ticketing
node_booking -->|"records hold"| node_booking_data
node_booking -->|"creates payment order"| node_payments
node_payments -->|"records payment"| node_payment_records
node_payments -->|"verifies webhook"| node_gateway
node_payments -->|"confirms booking"| node_booking
node_attendee -->|"presents ticket"| node_checkin
node_checkin -->|"verifies ticket"| node_booking_data
node_booking -->|"publishes lifecycle events"| node_domain_events
node_payments -->|"publishes payment events"| node_domain_events
node_settlements -->|"publishes payout events"| node_domain_events
node_domain_events -->|"dispatches events"| node_notifications
node_notifications -->|"renders messages"| node_notification_templates
node_settlements -->|"reconciles amounts"| node_payment_records
node_organizer -->|"views payouts"| node_settlements
node_application_wiring -->|"provides adapters"| node_storage_port
node_local_storage -->|"implements"| node_storage_port
node_event_authoring -->|"uploads media"| node_storage_port

click node_discovery "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/api.py"
click node_event_authoring "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/services.py"
click node_event_data "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/models.py"
click node_event_queries "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/repositories.py"
click node_taxonomy "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/taxonomy.py"
click node_organizations "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/organizations/repositories.py"
click node_ticketing "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/ticketing/services.py"
click node_booking_ui "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/frontend/components/booking/step-review.tsx"
click node_booking "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/booking/services.py"
click node_booking_data "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/booking/models.py"
click node_payments "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/payments/services.py"
click node_payment_records "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/payments/repositories.py"
click node_checkin "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/checkin/services.py"
click node_notifications "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/notifications/services.py"
click node_notification_templates "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/notifications/templates.py"
click node_settlements "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/settlements/services.py"
click node_application_wiring "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/config/di.py"
click node_domain_events "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/events.py"
click node_storage_port "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/ports/storage_port.py"
click node_local_storage "https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/adapters/local/local_storage.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_discovery,node_event_authoring,node_event_data,node_event_queries,node_taxonomy,node_organizations toneBlue
class node_ticketing,node_booking_ui,node_booking,node_booking_data,node_payments,node_payment_records,node_gateway toneAmber
class node_checkin,node_notifications,node_notification_templates,node_settlements toneMint
class node_application_wiring,node_domain_events,node_storage_port,node_local_storage toneRose
class node_attendee,node_organizer,node_operator toneIndigo
```

## Components

### Event catalog

- [Event discovery](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/api.py): `backend/apps/events/api.py`
- [Event authoring](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/services.py): `backend/apps/events/services.py`
- [Event records](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/models.py): `backend/apps/events/models.py`
- [Event queries](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/repositories.py): `backend/apps/events/repositories.py`
- [Event taxonomy](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/events/taxonomy.py): `backend/apps/events/taxonomy.py`
- [Organizations](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/organizations/repositories.py): `backend/apps/organizations/repositories.py`

### Booking and money

- [Ticket inventory](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/ticketing/services.py): `backend/apps/ticketing/services.py`
- [Checkout flow](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/frontend/components/booking/step-review.tsx): `frontend/components/booking/step-review.tsx`
- [Booking lifecycle](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/booking/services.py): `backend/apps/booking/services.py`
- [Booking and tickets](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/booking/models.py): `backend/apps/booking/models.py`
- [Payment processing](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/payments/services.py): `backend/apps/payments/services.py`
- [Payment records](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/payments/repositories.py): `backend/apps/payments/repositories.py`
- **Payment gateway**

### Event operations

- [Gate check-in](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/checkin/services.py): `backend/apps/checkin/services.py`
- [Notifications](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/notifications/services.py): `backend/apps/notifications/services.py`
- [Message templates](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/notifications/templates.py): `backend/apps/notifications/templates.py`
- [Organizer settlements](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/apps/settlements/services.py): `backend/apps/settlements/services.py`

### Shared foundation

- [Service composition](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/config/di.py): `backend/config/di.py`
- [Domain events](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/events.py): `backend/core/events.py`
- [Storage interface](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/ports/storage_port.py): `backend/core/ports/storage_port.py`
- [Local storage adapter](https://github.com/hemanthsure123/evnt_n_experience-/blob/main/backend/core/adapters/local/local_storage.py): `backend/core/adapters/local/local_storage.py`

### Other components

- **Attendee**
- **Organizer**
- **Platform operator**

## Connections

- Attendee → Event discovery: browses events (evidence: `README.md`)
- Organizer → Event authoring: creates and publishes (evidence: `README.md`)
- Platform operator → Event authoring: moderates (evidence: `README.md`)
- Event discovery → Event queries: queries listings (evidence: `README.md`)
- Event queries → Event records: reads events (evidence: `backend/apps/events/repositories.py`)
- Event authoring → Event records: writes events (evidence: `backend/apps/events/services.py`)
- Event authoring → Organizations: checks ownership (evidence: `backend/apps/events/services.py`)
- Event discovery → Event taxonomy: filters categories (evidence: `README.md`)
- Attendee → Checkout flow: starts checkout (evidence: `frontend/components/booking/step-review.tsx`)
- Checkout flow → Booking lifecycle: creates hold (evidence: `frontend/components/booking/step-review.tsx`)
- Booking lifecycle → Ticket inventory: reserves inventory (evidence: `README.md`)
- Booking lifecycle → Booking and tickets: records hold (evidence: `README.md`)
- Booking lifecycle → Payment processing: creates payment order (evidence: `README.md`)
- Payment processing → Payment records: records payment (evidence: `README.md`)
- Payment processing → Payment gateway: verifies webhook (evidence: `README.md`)
- Payment processing → Booking lifecycle: confirms booking (evidence: `README.md`)
- Attendee → Gate check-in: presents ticket (evidence: `README.md`)
- Gate check-in → Booking and tickets: verifies ticket (evidence: `README.md`)
- Booking lifecycle → Domain events: publishes lifecycle events (evidence: `README.md`)
- Payment processing → Domain events: publishes payment events (evidence: `README.md`)
- Organizer settlements → Domain events: publishes payout events (evidence: `README.md`)
- Domain events → Notifications: dispatches events
- Notifications → Message templates: renders messages (evidence: `README.md`)
- Organizer settlements → Payment records: reconciles amounts (evidence: `README.md`)
- Organizer → Organizer settlements: views payouts (evidence: `README.md`)
- Service composition → Storage interface: provides adapters (evidence: `backend/config/di.py`)
- Local storage adapter → Storage interface: implements (evidence: `backend/core/adapters/local/local_storage.py`)
- Event authoring → Storage interface: uploads media (evidence: `backend/apps/events/services.py`)
