# srivi24/movie-picture-pipeline architecture

> Architecture diagram of the GitHub repository srivi24/movie-picture-pipeline, 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/srivi24/movie-picture-pipeline
- Repository: https://github.com/srivi24/movie-picture-pipeline

## Overview

Movie Picture Pipeline combines a React movie catalog, a Flask API, and GitHub Actions delivery to Kubernetes. Users browse a movie list, select a movie, and view its details; the UI fetches list and detail data from the API. The backend registers movie routes and serves examples from an in-memory dictionary. The README also documents parallel lint/test checks, builds, and manifest-based deployment. Workflow and Kubernetes links reflect README capabilities; their implementation details were not sampled.

Main entry points: [`starter/backend/movies/movies_api.py`](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/movies_api.py) (Movie routes), [`starter/frontend/src/App.js`](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/App.js) (Catalog app), [`starter/frontend/src/components/MovieList.js`](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/components/MovieList.js) (Movie list), [`starter/frontend/src/components/MovieDetails.js`](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/components/MovieDetails.js) (Movie details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Movie catalog UI"]
  node_app["Catalog app<br/>[App.js]"]
  node_movie_list["Movie list<br/>[MovieList.js]"]
  node_movie_details["Movie details<br/>[MovieDetails.js]"]
end

subgraph group_backend["Movie API"]
  node_flask_app["Flask app<br/>[__init__.py]"]
  node_movie_routes["Movie routes<br/>[movies_api.py]"]
  node_movie_resource["Movie resource<br/>[resources.py]"]
  node_movie_records[("In-memory movies<br/>[resources.py]")]
end

subgraph group_delivery["CI and delivery"]
  node_frontend_workflow["Frontend workflow<br/>[frontend-ci.yml]"]
  node_backend_workflow["Backend workflow<br/>[backend-ci.yaml]"]
end

subgraph group_platform["Kubernetes platform"]
  node_frontend_manifests["Frontend manifests"]
  node_backend_manifests["Backend manifests"]
end

node_visitor(("Catalog visitor"))
node_cluster{{"Kubernetes cluster"}}

node_visitor -->|"uses"| node_app
node_app -->|"renders"| node_movie_list
node_app -->|"renders"| node_movie_details
node_movie_list -->|"fetches list"| node_movie_routes
node_movie_details -->|"fetches details"| node_movie_routes
node_flask_app -->|"registers"| node_movie_routes
node_movie_routes -->|"dispatches"| node_movie_resource
node_movie_resource -->|"reads"| node_movie_records
node_frontend_workflow -.->|"deploys"| node_frontend_manifests
node_backend_workflow -.->|"deploys"| node_backend_manifests
node_frontend_manifests -.->|"applied to"| node_cluster
node_backend_manifests -.->|"applied to"| node_cluster

click node_app "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/App.js"
click node_movie_list "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/components/MovieList.js"
click node_movie_details "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/components/MovieDetails.js"
click node_frontend_workflow "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/.github/workflow/frontend-ci.yml"
click node_backend_workflow "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/.github/workflow/backend-ci.yaml"
click node_frontend_manifests "https://github.com/srivi24/movie-picture-pipeline/tree/main/starter/frontend/k8s"
click node_backend_manifests "https://github.com/srivi24/movie-picture-pipeline/tree/main/starter/backend/k8s"
click node_flask_app "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/__init__.py"
click node_movie_routes "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/movies_api.py"
click node_movie_resource "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/resources.py"
click node_movie_records "https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/resources.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_movie_list,node_movie_details toneBlue
class node_flask_app,node_movie_routes,node_movie_resource,node_movie_records toneAmber
class node_frontend_workflow,node_backend_workflow toneMint
class node_frontend_manifests,node_backend_manifests toneRose
class node_visitor,node_cluster toneIndigo
```

## Components

### Movie catalog UI

- [Catalog app](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/App.js): `starter/frontend/src/App.js`
- [Movie list](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/components/MovieList.js): `starter/frontend/src/components/MovieList.js`
- [Movie details](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/frontend/src/components/MovieDetails.js): `starter/frontend/src/components/MovieDetails.js`

### Movie API

- [Flask app](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/__init__.py): `starter/backend/__init__.py`
- [Movie routes](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/movies_api.py): `starter/backend/movies/movies_api.py`
- [Movie resource](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/resources.py): `starter/backend/movies/resources.py`
- [In-memory movies](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/backend/movies/resources.py): `starter/backend/movies/resources.py`

### CI and delivery

- [Frontend workflow](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/.github/workflow/frontend-ci.yml): `starter/.github/workflow/frontend-ci.yml`
- [Backend workflow](https://github.com/srivi24/movie-picture-pipeline/blob/main/starter/.github/workflow/backend-ci.yaml): `starter/.github/workflow/backend-ci.yaml`

### Kubernetes platform

- [Frontend manifests](https://github.com/srivi24/movie-picture-pipeline/tree/main/starter/frontend/k8s): `starter/frontend/k8s`
- [Backend manifests](https://github.com/srivi24/movie-picture-pipeline/tree/main/starter/backend/k8s): `starter/backend/k8s`

### Other components

- **Catalog visitor**
- **Kubernetes cluster**

## Connections

- Catalog visitor → Catalog app: uses (evidence: `README.md`)
- Catalog app → Movie list: renders (evidence: `starter/frontend/src/App.js`)
- Catalog app → Movie details: renders (evidence: `starter/frontend/src/App.js`)
- Movie list → Movie routes: fetches list (evidence: `starter/frontend/src/components/MovieList.js`)
- Movie details → Movie routes: fetches details (evidence: `starter/frontend/src/components/MovieDetails.js`)
- Flask app → Movie routes: registers (evidence: `starter/backend/__init__.py`)
- Movie routes → Movie resource: dispatches (evidence: `starter/backend/movies/movies_api.py`)
- Movie resource → In-memory movies: reads (evidence: `starter/backend/movies/resources.py`)
- Frontend workflow → Frontend manifests: deploys (evidence: `README.md`)
- Backend workflow → Backend manifests: deploys (evidence: `README.md`)
- Frontend manifests → Kubernetes cluster: applied to (evidence: `README.md`)
- Backend manifests → Kubernetes cluster: applied to (evidence: `README.md`)
