# prakashtaz0091/cine-reserve architecture

> Architecture diagram of the GitHub repository prakashtaz0091/cine-reserve, 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/prakashtaz0091/cine-reserve
- Repository: https://github.com/prakashtaz0091/cine-reserve

## Overview

Cine Reserve is a Django cinema-ticket reservation system. The main customer flow is browsing movies and shows, choosing seats, creating a pending reservation, paying through Khalti, and receiving a QR receipt after payment verification. Staff configure halls, seats, and shows; a REST API exposes movie, cinema, profile, and reservation operations. The graph reflects documented capabilities and relationships visible in the supplied excerpts or SOURCE INDEX; unsampled routing and task wiring are not inferred beyond those references.

Main entry points: [`apis/views.py`](https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/views.py) (Catalog and profile API), [`core/views.py`](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py) (Web reservations), [`core/services.py`](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/services.py) (Khalti payment), [`accounts/tasks.py`](https://github.com/prakashtaz0091/cine-reserve/blob/master/accounts/tasks.py) (Verification mail tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Cinema catalog"]
  node_catalog_views["Movie browsing<br/>[views.py]"]
  node_cinema_data[("Cinema and show catalog<br/>[models.py]")]
end

subgraph group_booking["Reservations and payment"]
  node_booking_views["Web reservations<br/>[views.py]"]
  node_reservation_api["Reservation API<br/>[views.py]"]
  node_reservation_data[("Reservation records<br/>[models.py]")]
  node_payment_service["Khalti payment<br/>[services.py]"]
end

subgraph group_identity["Accounts and receipts"]
  node_account_views["Registration and login<br/>[views.py]"]
  node_account_data[("Profiles and OTPs<br/>[models.py]")]
  node_account_tasks["Verification mail tasks<br/>[tasks.py]"]
  node_receipt_task["QR receipt mail<br/>[tasks.py]"]
  node_celery["Celery task runtime<br/>[celery.py]"]
end

subgraph group_operations["Staff and API"]
  node_show_admin["Show setup<br/>[views.py]"]
  node_show_builder["Show generation<br/>[services.py]"]
  node_staff_tools["Hall and seat setup<br/>[views.py]"]
  node_api_views["Catalog and profile API<br/>[views.py]"]
  node_api_serializers["API serializers<br/>[serializers.py]"]
  node_movie_filter["Movie filters<br/>[filters.py]"]
end

node_customer(("Customer"))
node_staff(("Cinema staff"))
node_web["Django web entry<br/>[urls.py]"]
node_khalti{{"Khalti gateway"}}
node_mail{{"Email service"}}

node_customer -.->|"uses"| node_web
node_web -.->|"routes"| node_catalog_views
node_catalog_views -->|"reads catalog"| node_cinema_data
node_customer -.->|"selects seats"| node_booking_views
node_booking_views -->|"creates reservations"| node_reservation_data
node_booking_views -->|"initiates payment"| node_payment_service
node_payment_service -->|"requests payment"| node_khalti
node_booking_views -->|"verifies payment"| node_payment_service
node_payment_service -->|"confirms reservations"| node_reservation_data
node_booking_views -->|"queues receipt"| node_receipt_task
node_receipt_task -->|"sends QR email"| node_mail
node_staff -.->|"configures shows"| node_show_admin
node_show_admin -->|"builds schedule"| node_show_builder
node_show_builder -->|"creates shows"| node_cinema_data
node_staff -.->|"configures seats"| node_staff_tools
node_staff_tools -->|"updates halls and seats"| node_cinema_data
node_customer -.->|"registers"| node_account_views
node_account_views -->|"creates profile"| node_account_data
node_account_views -->|"uses mail tasks"| node_account_tasks
node_account_tasks -->|"creates OTP"| node_account_data
node_account_tasks -->|"sends verification"| node_mail
node_celery -->|"discovers tasks"| node_receipt_task
node_celery -.->|"discovers tasks"| node_account_tasks
node_customer -.->|"uses API"| node_api_views
node_api_views -->|"creates reservations"| node_reservation_data
node_api_views -->|"initiates payment"| node_payment_service
node_api_views -->|"validates data"| node_api_serializers
node_api_serializers -->|"serializes profiles"| node_account_data
node_api_views -->|"filters movies"| node_movie_filter
node_api_views -->|"reads catalog"| node_cinema_data
node_web -->|"routes API"| node_api_views

click node_web "https://github.com/prakashtaz0091/cine-reserve/blob/master/config/urls.py"
click node_catalog_views "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py"
click node_cinema_data "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/models.py"
click node_show_admin "https://github.com/prakashtaz0091/cine-reserve/blob/master/cine_admin/views.py"
click node_show_builder "https://github.com/prakashtaz0091/cine-reserve/blob/master/cine_admin/services.py"
click node_staff_tools "https://github.com/prakashtaz0091/cine-reserve/blob/master/cine_admin/views.py"
click node_booking_views "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py"
click node_reservation_api "https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/views.py"
click node_reservation_data "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/models.py"
click node_payment_service "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/services.py"
click node_account_views "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py"
click node_account_data "https://github.com/prakashtaz0091/cine-reserve/blob/master/accounts/models.py"
click node_account_tasks "https://github.com/prakashtaz0091/cine-reserve/blob/master/accounts/tasks.py"
click node_receipt_task "https://github.com/prakashtaz0091/cine-reserve/blob/master/core/tasks.py"
click node_api_views "https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/views.py"
click node_api_serializers "https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/serializers.py"
click node_movie_filter "https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/filters.py"
click node_celery "https://github.com/prakashtaz0091/cine-reserve/blob/master/config/celery.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_catalog_views,node_cinema_data toneBlue
class node_booking_views,node_reservation_api,node_reservation_data,node_payment_service toneAmber
class node_account_views,node_account_data,node_account_tasks,node_receipt_task,node_celery toneMint
class node_show_admin,node_show_builder,node_staff_tools,node_api_views,node_api_serializers,node_movie_filter toneRose
class node_customer,node_staff,node_khalti,node_mail toneIndigo
class node_web toneTeal
```

## Components

### Cinema catalog

- [Movie browsing](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py): `core/views.py`
- [Cinema and show catalog](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/models.py): `core/models.py`

### Reservations and payment

- [Web reservations](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py): `core/views.py`
- [Reservation API](https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/views.py): `apis/views.py`
- [Reservation records](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/models.py): `core/models.py`
- [Khalti payment](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/services.py): `core/services.py`

### Accounts and receipts

- [Registration and login](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/views.py): `core/views.py`
- [Profiles and OTPs](https://github.com/prakashtaz0091/cine-reserve/blob/master/accounts/models.py): `accounts/models.py`
- [Verification mail tasks](https://github.com/prakashtaz0091/cine-reserve/blob/master/accounts/tasks.py): `accounts/tasks.py`
- [QR receipt mail](https://github.com/prakashtaz0091/cine-reserve/blob/master/core/tasks.py): `core/tasks.py`
- [Celery task runtime](https://github.com/prakashtaz0091/cine-reserve/blob/master/config/celery.py): `config/celery.py`

### Staff and API

- [Show setup](https://github.com/prakashtaz0091/cine-reserve/blob/master/cine_admin/views.py): `cine_admin/views.py`
- [Show generation](https://github.com/prakashtaz0091/cine-reserve/blob/master/cine_admin/services.py): `cine_admin/services.py`
- [Hall and seat setup](https://github.com/prakashtaz0091/cine-reserve/blob/master/cine_admin/views.py): `cine_admin/views.py`
- [Catalog and profile API](https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/views.py): `apis/views.py`
- [API serializers](https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/serializers.py): `apis/serializers.py`
- [Movie filters](https://github.com/prakashtaz0091/cine-reserve/blob/master/apis/filters.py): `apis/filters.py`

### Other components

- **Customer**
- **Cinema staff**
- [Django web entry](https://github.com/prakashtaz0091/cine-reserve/blob/master/config/urls.py): `config/urls.py`
- **Khalti gateway**
- **Email service**

## Connections

- Customer → Django web entry: uses (evidence: `README.md`)
- Django web entry → Movie browsing: routes
- Movie browsing → Cinema and show catalog: reads catalog (evidence: `core/views.py`)
- Customer → Web reservations: selects seats
- Web reservations → Reservation records: creates reservations (evidence: `core/views.py`)
- Web reservations → Khalti payment: initiates payment (evidence: `core/views.py`)
- Khalti payment → Khalti gateway: requests payment (evidence: `core/services.py`)
- Web reservations → Khalti payment: verifies payment (evidence: `core/views.py`)
- Khalti payment → Reservation records: confirms reservations (evidence: `core/services.py`)
- Web reservations → QR receipt mail: queues receipt (evidence: `core/views.py`)
- QR receipt mail → Email service: sends QR email (evidence: `core/tasks.py`)
- Cinema staff → Show setup: configures shows
- Show setup → Show generation: builds schedule (evidence: `cine_admin/views.py`)
- Show generation → Cinema and show catalog: creates shows (evidence: `cine_admin/services.py`)
- Cinema staff → Hall and seat setup: configures seats
- Hall and seat setup → Cinema and show catalog: updates halls and seats (evidence: `cine_admin/views.py`)
- Customer → Registration and login: registers
- Registration and login → Profiles and OTPs: creates profile (evidence: `core/views.py`)
- Registration and login → Verification mail tasks: uses mail tasks
- Verification mail tasks → Profiles and OTPs: creates OTP (evidence: `accounts/tasks.py`)
- Verification mail tasks → Email service: sends verification (evidence: `accounts/tasks.py`)
- Celery task runtime → QR receipt mail: discovers tasks (evidence: `config/celery.py`)
- Celery task runtime → Verification mail tasks: discovers tasks (evidence: `accounts/tasks.py`)
- Customer → Catalog and profile API: uses API
- Catalog and profile API → Reservation records: creates reservations (evidence: `apis/views.py`)
- Catalog and profile API → Khalti payment: initiates payment (evidence: `apis/views.py`)
- Catalog and profile API → API serializers: validates data (evidence: `apis/views.py`)
- API serializers → Profiles and OTPs: serializes profiles (evidence: `apis/serializers.py`)
- Catalog and profile API → Movie filters: filters movies (evidence: `apis/views.py`)
- Catalog and profile API → Cinema and show catalog: reads catalog (evidence: `apis/views.py`)
- Django web entry → Catalog and profile API: routes API (evidence: `config/urls.py`)
