# venkataramana545/mavenghastage1 architecture

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

- Interactive diagram: https://gitdiagram.com/venkataramana545/mavenghastage1
- Repository: https://github.com/venkataramana545/mavenghastage1

## Overview

StreamFlix is a small server-rendered movie catalog. A browser requests the homepage, details, search, or My List; controllers obtain catalog data from the in-memory service and return Thymeleaf views. The health endpoint serves JSON separately. The README documents these product capabilities and the absence of a database or external APIs. Source excerpts show controller-to-service calls and template selections; relationships for template rendering and browser routing are based on the README and controller return values.

Main entry points: [`src/main/java/com/streamflix/controller/MovieController.java`](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/MovieController.java) (Movie routes), [`src/main/java/com/streamflix/controller/HomeController.java`](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/HomeController.java) (Homepage), [`src/main/java/com/streamflix/service/MovieService.java`](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/service/MovieService.java) (Catalog service), [`src/main/java/com/streamflix/controller/HealthController.java`](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/HealthController.java) (Health endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["Spring Boot app"]
end

subgraph group_web["Web endpoints"]
  node_home["Homepage"]
  node_movies["Movie routes"]
  node_health["Health endpoint"]
end

subgraph group_catalog["Catalog and state"]
  node_service["Catalog service<br/>[MovieService.java]"]
  node_movie["Movie model<br/>[Movie.java]"]
end

subgraph group_views["Server-rendered UI"]
  node_index["Homepage view<br/>[index.html]"]
  node_details["Details view<br/>[movie.html]"]
  node_search["Search view<br/>[search.html]"]
  node_mylist["My List view<br/>[my-list.html]"]
  node_styles["Page styling<br/>[style.css]"]
end

node_browser(("Browser"))

node_browser -->|"requests home"| node_home
node_browser -->|"requests routes"| node_movies
node_browser -->|"checks health"| node_health
node_home -->|"gets movie rows"| node_service
node_movies -->|"gets or updates"| node_service
node_service -->|"creates and queries"| node_movie
node_home -->|"selects view"| node_index
node_movies -->|"selects view"| node_details
node_movies -->|"selects view"| node_search
node_movies -->|"selects view"| node_mylist

click node_app "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/StreamFlixApplication.java"
click node_home "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/HomeController.java"
click node_movies "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/MovieController.java"
click node_health "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/HealthController.java"
click node_service "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/service/MovieService.java"
click node_movie "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/model/Movie.java"
click node_index "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/index.html"
click node_details "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/movie.html"
click node_search "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/search.html"
click node_mylist "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/my-list.html"
click node_styles "https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/static/css/style.css"

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_browser toneBlue
class node_home,node_movies,node_health toneAmber
class node_service,node_movie toneMint
class node_index,node_details,node_search,node_mylist,node_styles toneRose
```

## Components

### Application entry

- [Spring Boot app](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/StreamFlixApplication.java): `src/main/java/com/streamflix/StreamFlixApplication.java`

### Web endpoints

- [Homepage](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/HomeController.java): `src/main/java/com/streamflix/controller/HomeController.java`
- [Movie routes](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/MovieController.java): `src/main/java/com/streamflix/controller/MovieController.java`
- [Health endpoint](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/controller/HealthController.java): `src/main/java/com/streamflix/controller/HealthController.java`

### Catalog and state

- [Catalog service](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/service/MovieService.java): `src/main/java/com/streamflix/service/MovieService.java`
- [Movie model](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/java/com/streamflix/model/Movie.java): `src/main/java/com/streamflix/model/Movie.java`

### Server-rendered UI

- [Homepage view](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/index.html): `src/main/resources/templates/index.html`
- [Details view](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/movie.html): `src/main/resources/templates/movie.html`
- [Search view](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/search.html): `src/main/resources/templates/search.html`
- [My List view](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/templates/my-list.html): `src/main/resources/templates/my-list.html`
- [Page styling](https://github.com/venkataramana545/mavenghastage1/blob/main/src/main/resources/static/css/style.css): `src/main/resources/static/css/style.css`

### Other components

- **Browser**

## Connections

- Browser → Homepage: requests home (evidence: `README.md`)
- Browser → Movie routes: requests routes (evidence: `README.md`)
- Browser → Health endpoint: checks health (evidence: `README.md`)
- Homepage → Catalog service: gets movie rows (evidence: `src/main/java/com/streamflix/controller/HomeController.java`)
- Movie routes → Catalog service: gets or updates (evidence: `src/main/java/com/streamflix/controller/MovieController.java`)
- Catalog service → Movie model: creates and queries (evidence: `src/main/java/com/streamflix/service/MovieService.java`)
- Homepage → Homepage view: selects view (evidence: `src/main/java/com/streamflix/controller/HomeController.java`)
- Movie routes → Details view: selects view (evidence: `src/main/java/com/streamflix/controller/MovieController.java`)
- Movie routes → Search view: selects view (evidence: `src/main/java/com/streamflix/controller/MovieController.java`)
- Movie routes → My List view: selects view (evidence: `src/main/java/com/streamflix/controller/MovieController.java`)
