# sahoo462/movies-wizz architecture

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

- Interactive diagram: https://gitdiagram.com/sahoo462/movies-wizz
- Repository: https://github.com/sahoo462/movies-wizz

## Overview

Movies Wizz is a Python backend for a movie catalog, accounts, and personal watchlists. The main workflow is a client making HTTP requests to the server, which handles catalog queries or authenticated account/watchlist operations and persists user state in SQLite. Catalog and curated-featured data are supplied as JSON. The implementation is concentrated in app.py; the excerpts show database setup and selected handlers, but not all routing or catalog-loading code, so uncertain internal links are omitted.

Main entry points: [`app.py`](https://github.com/sahoo462/movies-wizz/blob/main/app.py) (HTTP server), [`movies.json`](https://github.com/sahoo462/movies-wizz/blob/main/movies.json) (Movie catalog data), [`featured_movies_2026.json`](https://github.com/sahoo462/movies-wizz/blob/main/featured_movies_2026.json) (Featured 2026 data), [`index.html`](https://github.com/sahoo462/movies-wizz/blob/main/index.html) (Movie app interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["HTTP API"]
  node_server["HTTP server<br/>[app.py]"]
end

subgraph group_catalog["Movie catalog"]
  node_catalog_queries["Catalog queries<br/>[app.py]"]
  node_featured["Featured candidates<br/>[app.py]"]
  node_catalog_json["Movie catalog data<br/>[movies.json]"]
  node_featured_json["Featured 2026 data"]
end

subgraph group_identity["Accounts and sessions"]
  node_accounts["Registration and login<br/>[app.py]"]
  node_sessions["Session authentication<br/>[app.py]"]
end

subgraph group_personal["Personal watchlists"]
  node_watchlists["Watchlist operations<br/>[app.py]"]
end

subgraph group_storage["Persistent data"]
  node_database[("SQLite database<br/>[app.py]")]
end

node_client(("Movie app user"))
node_web_ui["Movie app interface<br/>[index.html]"]

node_client -->|"sends API requests"| node_server
node_server -->|"handles catalog routes"| node_catalog_queries
node_server -->|"handles auth routes"| node_accounts
node_server -->|"authenticates requests"| node_sessions
node_server -->|"handles watchlist routes"| node_watchlists
node_server -->|"initializes database"| node_database
node_watchlists -->|"reads and writes"| node_database
node_catalog_queries -->|"uses catalog entries"| node_catalog_json
node_featured -->|"uses candidates"| node_featured_json
node_client -.->|"uses interface"| node_web_ui

click node_server "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_catalog_queries "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_featured "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_catalog_json "https://github.com/sahoo462/movies-wizz/blob/main/movies.json"
click node_featured_json "https://github.com/sahoo462/movies-wizz/blob/main/featured_movies_2026.json"
click node_accounts "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_sessions "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_watchlists "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_database "https://github.com/sahoo462/movies-wizz/blob/main/app.py"
click node_web_ui "https://github.com/sahoo462/movies-wizz/blob/main/index.html"

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_server,node_client toneBlue
class node_catalog_queries,node_featured,node_catalog_json,node_featured_json toneAmber
class node_accounts,node_sessions toneMint
class node_watchlists toneRose
class node_database toneIndigo
class node_web_ui toneTeal
```

## Components

### HTTP API

- [HTTP server](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`

### Movie catalog

- [Catalog queries](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`
- [Featured candidates](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`
- [Movie catalog data](https://github.com/sahoo462/movies-wizz/blob/main/movies.json): `movies.json`
- [Featured 2026 data](https://github.com/sahoo462/movies-wizz/blob/main/featured_movies_2026.json): `featured_movies_2026.json`

### Accounts and sessions

- [Registration and login](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`
- [Session authentication](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`

### Personal watchlists

- [Watchlist operations](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`

### Persistent data

- [SQLite database](https://github.com/sahoo462/movies-wizz/blob/main/app.py): `app.py`

### Other components

- **Movie app user**
- [Movie app interface](https://github.com/sahoo462/movies-wizz/blob/main/index.html): `index.html`

## Connections

- Movie app user → HTTP server: sends API requests (evidence: `README.md`)
- HTTP server → Catalog queries: handles catalog routes (evidence: `README.md`)
- HTTP server → Registration and login: handles auth routes (evidence: `README.md`)
- HTTP server → Session authentication: authenticates requests (evidence: `README.md`)
- HTTP server → Watchlist operations: handles watchlist routes (evidence: `README.md`)
- HTTP server → SQLite database: initializes database (evidence: `app.py`)
- Watchlist operations → SQLite database: reads and writes (evidence: `app.py`)
- Catalog queries → Movie catalog data: uses catalog entries (evidence: `README.md`)
- Featured candidates → Featured 2026 data: uses candidates (evidence: `README.md`)
- Movie app user → Movie app interface: uses interface
