# kasemsak66/eventflow architecture

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

- Interactive diagram: https://gitdiagram.com/kasemsak66/eventflow
- Repository: https://github.com/kasemsak66/eventflow

## Overview

Eventflow is a Django venue-booking and community-activity application. Users discover venues, book them and submit payment slips; owners manage venues and bookings, then completed bookings can support reviews and activities. The app also provides account/profile features, favorites, analytics, staff administration, and WebSocket chat. The graph follows the documented URL and WebSocket routing and the sampled view/model relationships; some detailed subsystems are represented by their source modules because their implementations were not fully sampled.

Main entry points: [`mylogin/models.py`](https://github.com/kasemsak66/eventflow/blob/main/mylogin/models.py) (Domain records), [`mylogin/urls.py`](https://github.com/kasemsak66/eventflow/blob/main/mylogin/urls.py) (HTTP routes), [`mylogin/forms.py`](https://github.com/kasemsak66/eventflow/blob/main/mylogin/forms.py) (Domain forms), [`mylogin/views/auth_views.py`](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/auth_views.py) (Accounts and profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_accounts_views["Accounts and profile<br/>[auth_views.py]"]
  node_user_forms["Account forms<br/>[forms.py]"]
end

subgraph group_venues["Venue discovery"]
  node_venue_views["Venue management<br/>[venue_views.py]"]
  node_venue_search["Venue discovery<br/>[landing_views.py]"]
  node_venue_map["Venue map<br/>[venue_views.py]"]
  node_domain_forms["Domain forms<br/>[forms.py]"]
end

subgraph group_booking["Bookings and payments"]
  node_booking_views["Booking and payment<br/>[booking_views.py]"]
  node_domain_models["Domain records<br/>[models.py]"]
  node_database[("Application database")]
end

subgraph group_community["Activities and community"]
  node_activity_views["Activities and signup<br/>[activity_views.py]"]
  node_review_views["Venue reviews<br/>[review_views.py]"]
end

subgraph group_operations["Administration and chat"]
  node_ws_routes["WebSocket routes<br/>[routing.py]"]
  node_chat_views["Chat history<br/>[chat_views.py]"]
  node_chat_consumer["Live chat<br/>[consumers.py]"]
  node_admin_views["Staff administration<br/>[admin_views.py]"]
end

node_visitor(("User"))
node_web_routes["HTTP routes<br/>[urls.py]"]
node_ws_client(("Chat client"))

node_visitor -->|"sends requests"| node_web_routes
node_web_routes -->|"routes to"| node_accounts_views
node_web_routes -->|"routes to"| node_venue_views
node_web_routes -->|"routes to"| node_venue_search
node_web_routes -->|"routes to"| node_booking_views
node_web_routes -->|"routes to"| node_activity_views
node_web_routes -->|"routes to"| node_review_views
node_web_routes -->|"routes to"| node_admin_views
node_web_routes -.->|"routes to"| node_chat_views
node_accounts_views -->|"uses"| node_user_forms
node_accounts_views -->|"reads and updates"| node_domain_models
node_venue_views -->|"uses"| node_domain_forms
node_venue_views -->|"reads and updates"| node_domain_models
node_venue_search -->|"searches"| node_domain_models
node_venue_map -.->|"reads"| node_domain_models
node_booking_views -->|"uses"| node_domain_forms
node_booking_views -->|"reads and updates"| node_domain_models
node_activity_views -->|"uses"| node_domain_forms
node_activity_views -->|"reads and updates"| node_domain_models
node_review_views -->|"uses"| node_domain_forms
node_review_views -->|"checks and updates"| node_domain_models
node_admin_views -->|"manages"| node_domain_models
node_chat_views -->|"reads"| node_domain_models
node_domain_forms -->|"validates"| node_domain_models
node_domain_models -->|"persists records"| node_database
node_ws_client -->|"opens socket"| node_ws_routes
node_ws_routes -->|"dispatches to"| node_chat_consumer
node_chat_consumer -->|"uses"| node_domain_models

click node_web_routes "https://github.com/kasemsak66/eventflow/blob/main/mylogin/urls.py"
click node_ws_routes "https://github.com/kasemsak66/eventflow/blob/main/mylogin/routing.py"
click node_accounts_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/auth_views.py"
click node_user_forms "https://github.com/kasemsak66/eventflow/blob/main/mylogin/forms.py"
click node_venue_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/venue_views.py"
click node_venue_search "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/landing_views.py"
click node_venue_map "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/venue_views.py"
click node_booking_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/booking_views.py"
click node_activity_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/activity_views.py"
click node_review_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/review_views.py"
click node_chat_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/chat_views.py"
click node_chat_consumer "https://github.com/kasemsak66/eventflow/blob/main/mylogin/consumers.py"
click node_admin_views "https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/admin_views.py"
click node_domain_forms "https://github.com/kasemsak66/eventflow/blob/main/mylogin/forms.py"
click node_domain_models "https://github.com/kasemsak66/eventflow/blob/main/mylogin/models.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_accounts_views,node_user_forms,node_visitor,node_ws_client toneBlue
class node_venue_views,node_venue_search,node_venue_map,node_domain_forms toneAmber
class node_booking_views,node_domain_models,node_database,node_web_routes toneMint
class node_activity_views,node_review_views toneRose
class node_ws_routes,node_chat_views,node_chat_consumer,node_admin_views toneIndigo
```

## Components

### Accounts

- [Accounts and profile](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/auth_views.py): `mylogin/views/auth_views.py`
- [Account forms](https://github.com/kasemsak66/eventflow/blob/main/mylogin/forms.py): `mylogin/forms.py`

### Venue discovery

- [Venue management](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/venue_views.py): `mylogin/views/venue_views.py`
- [Venue discovery](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/landing_views.py): `mylogin/views/landing_views.py`
- [Venue map](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/venue_views.py): `mylogin/views/venue_views.py`
- [Domain forms](https://github.com/kasemsak66/eventflow/blob/main/mylogin/forms.py): `mylogin/forms.py`

### Bookings and payments

- [Booking and payment](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/booking_views.py): `mylogin/views/booking_views.py`
- [Domain records](https://github.com/kasemsak66/eventflow/blob/main/mylogin/models.py): `mylogin/models.py`
- **Application database**

### Activities and community

- [Activities and signup](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/activity_views.py): `mylogin/views/activity_views.py`
- [Venue reviews](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/review_views.py): `mylogin/views/review_views.py`

### Administration and chat

- [WebSocket routes](https://github.com/kasemsak66/eventflow/blob/main/mylogin/routing.py): `mylogin/routing.py`
- [Chat history](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/chat_views.py): `mylogin/views/chat_views.py`
- [Live chat](https://github.com/kasemsak66/eventflow/blob/main/mylogin/consumers.py): `mylogin/consumers.py`
- [Staff administration](https://github.com/kasemsak66/eventflow/blob/main/mylogin/views/admin_views.py): `mylogin/views/admin_views.py`

### Other components

- **User**
- [HTTP routes](https://github.com/kasemsak66/eventflow/blob/main/mylogin/urls.py): `mylogin/urls.py`
- **Chat client**

## Connections

- User → HTTP routes: sends requests (evidence: `mylogin/urls.py`)
- HTTP routes → Accounts and profile: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Venue management: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Venue discovery: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Booking and payment: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Activities and signup: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Venue reviews: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Staff administration: routes to (evidence: `mylogin/urls.py`)
- HTTP routes → Chat history: routes to
- Accounts and profile → Account forms: uses (evidence: `mylogin/views/auth_views.py`)
- Accounts and profile → Domain records: reads and updates (evidence: `mylogin/views/auth_views.py`)
- Venue management → Domain forms: uses (evidence: `mylogin/views/venue_views.py`)
- Venue management → Domain records: reads and updates (evidence: `mylogin/views/venue_views.py`)
- Venue discovery → Domain records: searches (evidence: `mylogin/views/landing_views.py`)
- Venue map → Domain records: reads (evidence: `mylogin/views/venue_views.py`)
- Booking and payment → Domain forms: uses (evidence: `mylogin/views/booking_views.py`)
- Booking and payment → Domain records: reads and updates (evidence: `mylogin/views/booking_views.py`)
- Activities and signup → Domain forms: uses (evidence: `mylogin/views/activity_views.py`)
- Activities and signup → Domain records: reads and updates (evidence: `mylogin/views/activity_views.py`)
- Venue reviews → Domain forms: uses (evidence: `mylogin/views/review_views.py`)
- Venue reviews → Domain records: checks and updates (evidence: `mylogin/views/review_views.py`)
- Staff administration → Domain records: manages (evidence: `mylogin/views/admin_views.py`)
- Chat history → Domain records: reads (evidence: `mylogin/views/chat_views.py`)
- Domain forms → Domain records: validates (evidence: `mylogin/forms.py`)
- Domain records → Application database: persists records (evidence: `mylogin/models.py`)
- Chat client → WebSocket routes: opens socket (evidence: `mylogin/routing.py`)
- WebSocket routes → Live chat: dispatches to (evidence: `mylogin/routing.py`)
- Live chat → Domain records: uses (evidence: `mylogin/consumers.py`)
