# vinaykumar-jerripothula/filmgallery architecture

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

- Interactive diagram: https://gitdiagram.com/vinaykumar-jerripothula/filmgallery
- Repository: https://github.com/vinaykumar-jerripothula/filmgallery

## Overview

FilmGallery is a film and series discovery/catalog application with account authentication and per-user watch progress. Users sign up or log in, browse industry/category collections and content pages, and can persist universe watch positions and movie progress. The frontend also exposes search, people data, and anime watch-order collections. Backend request-to-service calls and frontend routing are supported by the supplied source index; links between the separate frontend and backend are not shown in the excerpts, so that integration is left unasserted.

Main entry points: [`Frontend/src/App.jsx`](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/App.jsx) (Application router), [`Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java`](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java) (Authentication service), [`Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java`](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java) (Movie progress service), [`Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java`](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java) (Universe progress service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend experience"]
  node_app["Application router<br/>[App.jsx]"]
  node_home["Home browsing<br/>[Home.jsx]"]
  node_category["Category browsing<br/>[CategoryPage.jsx]"]
  node_contentpage["Content details<br/>[ContentPage.jsx]"]
  node_authpages["Login and signup"]
  node_navbar["Navigation bar<br/>[Navbar.jsx]"]
  node_contentui["Content presentation"]
  node_progressstate["Progress state<br/>[progressSlice.js]"]
  node_movieprogressstate["Movie progress state"]
  node_httpclient["API client<br/>[axiosInstance.js]"]
end

subgraph group_catalog["Catalog and discovery"]
  node_catalogdata["Content registry<br/>[contentRegistry.js]"]
  node_animecontent["Anime collections"]
  node_peopledata["People catalog<br/>[peopleData.js]"]
  node_search["Catalog search<br/>[searchData.js]"]
  node_enrichment["People enrichment"]
end

subgraph group_backend["Backend services"]
  node_authcontroller["Authentication endpoints"]
  node_authservice["Authentication service<br/>[AuthService.java]"]
  node_jwt["JWT service<br/>[JwtService.java]"]
  node_jwtfilter["JWT request filter"]
  node_moviecontroller["Movie progress endpoints"]
  node_movieservice["Movie progress service"]
  node_universecontroller["Universe progress endpoints"]
  node_universeservice["Universe progress service"]
end

subgraph group_persistence["Persistence"]
  node_user["Account user<br/>[User.java]"]
  node_userrepo[("User repository")]
  node_movierepo[("Movie progress repository")]
  node_universerepo[("Universe progress repository")]
end

node_visitor(("Viewer"))

node_visitor -->|"uses"| node_app
node_app -->|"routes to"| node_authpages
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_category
node_app -->|"routes to"| node_contentpage
node_app -->|"dispatches"| node_progressstate
node_app -->|"dispatches"| node_movieprogressstate
node_app -.->|"loads"| node_catalogdata
node_home -.->|"uses"| node_navbar
node_contentpage -.->|"renders"| node_contentui
node_catalogdata -->|"imports"| node_animecontent
node_search -->|"searches"| node_catalogdata
node_search -->|"searches"| node_peopledata
node_search -->|"uses"| node_enrichment
node_progressstate -->|"calls"| node_httpclient
node_movieprogressstate -.->|"calls"| node_httpclient
node_authcontroller -->|"delegates"| node_authservice
node_authservice -->|"reads and writes"| node_userrepo
node_authservice -->|"creates tokens"| node_jwt
node_jwtfilter -->|"validates tokens"| node_jwt
node_moviecontroller -->|"delegates"| node_movieservice
node_movieservice -->|"looks up user"| node_userrepo
node_movieservice -->|"reads and writes"| node_movierepo
node_universecontroller -->|"delegates"| node_universeservice
node_universeservice -->|"looks up user"| node_userrepo
node_universeservice -->|"reads and writes"| node_universerepo
node_authservice -->|"authenticates"| node_user
node_movieservice -->|"associates progress"| node_user
node_universeservice -->|"associates progress"| node_user

click node_app "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/App.jsx"
click node_home "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/pages/Home.jsx"
click node_category "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/pages/CategoryPage.jsx"
click node_contentpage "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/components/template/ContentPage.jsx"
click node_authpages "https://github.com/vinaykumar-jerripothula/filmgallery/tree/main/Frontend/src/pages"
click node_navbar "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/components/layout/Navbar.jsx"
click node_contentui "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/components/template/ContentAccordion.jsx"
click node_catalogdata "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/data/Collection/contentRegistry.js"
click node_animecontent "https://github.com/vinaykumar-jerripothula/filmgallery/tree/main/Frontend/src/data/anime"
click node_peopledata "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/data/hollywood/people/peopleData.js"
click node_search "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/data/search/searchData.js"
click node_enrichment "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/utils/enrichPeopleData.js"
click node_progressstate "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/store/progressSlice.js"
click node_movieprogressstate "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/store/movieProgressSlice.js"
click node_httpclient "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/api/axiosInstance.js"
click node_user "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/entity/User.java"
click node_authcontroller "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/controller/AuthController.java"
click node_authservice "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java"
click node_jwt "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/JwtService.java"
click node_jwtfilter "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/config/JwtAuthenticationFilter.java"
click node_moviecontroller "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/controller/MovieProgressController.java"
click node_movieservice "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java"
click node_universecontroller "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/controller/UniverseProgressController.java"
click node_universeservice "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java"
click node_userrepo "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/repository/UserRepository.java"
click node_movierepo "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/repository/MovieProgressRepository.java"
click node_universerepo "https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/repository/UniverseProgressRepository.java"

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_home,node_category,node_contentpage,node_authpages,node_navbar,node_contentui,node_progressstate,node_movieprogressstate,node_httpclient,node_visitor toneBlue
class node_catalogdata,node_animecontent,node_peopledata,node_search,node_enrichment toneAmber
class node_authcontroller,node_authservice,node_jwt,node_jwtfilter,node_moviecontroller,node_movieservice,node_universecontroller,node_universeservice toneMint
class node_user,node_userrepo,node_movierepo,node_universerepo toneRose
```

## Components

### Frontend experience

- [Application router](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/App.jsx): `Frontend/src/App.jsx`
- [Home browsing](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/pages/Home.jsx): `Frontend/src/pages/Home.jsx`
- [Category browsing](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/pages/CategoryPage.jsx): `Frontend/src/pages/CategoryPage.jsx`
- [Content details](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/components/template/ContentPage.jsx): `Frontend/src/components/template/ContentPage.jsx`
- [Login and signup](https://github.com/vinaykumar-jerripothula/filmgallery/tree/main/Frontend/src/pages): `Frontend/src/pages`
- [Navigation bar](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/components/layout/Navbar.jsx): `Frontend/src/components/layout/Navbar.jsx`
- [Content presentation](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/components/template/ContentAccordion.jsx): `Frontend/src/components/template/ContentAccordion.jsx`
- [Progress state](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/store/progressSlice.js): `Frontend/src/store/progressSlice.js`
- [Movie progress state](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/store/movieProgressSlice.js): `Frontend/src/store/movieProgressSlice.js`
- [API client](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/api/axiosInstance.js): `Frontend/src/api/axiosInstance.js`

### Catalog and discovery

- [Content registry](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/data/Collection/contentRegistry.js): `Frontend/src/data/Collection/contentRegistry.js`
- [Anime collections](https://github.com/vinaykumar-jerripothula/filmgallery/tree/main/Frontend/src/data/anime): `Frontend/src/data/anime`
- [People catalog](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/data/hollywood/people/peopleData.js): `Frontend/src/data/hollywood/people/peopleData.js`
- [Catalog search](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/data/search/searchData.js): `Frontend/src/data/search/searchData.js`
- [People enrichment](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Frontend/src/utils/enrichPeopleData.js): `Frontend/src/utils/enrichPeopleData.js`

### Backend services

- [Authentication endpoints](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/controller/AuthController.java): `Backend/src/main/java/com/filmgallery/Backend/controller/AuthController.java`
- [Authentication service](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java): `Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java`
- [JWT service](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/JwtService.java): `Backend/src/main/java/com/filmgallery/Backend/service/JwtService.java`
- [JWT request filter](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/config/JwtAuthenticationFilter.java): `Backend/src/main/java/com/filmgallery/Backend/config/JwtAuthenticationFilter.java`
- [Movie progress endpoints](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/controller/MovieProgressController.java): `Backend/src/main/java/com/filmgallery/Backend/controller/MovieProgressController.java`
- [Movie progress service](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java): `Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java`
- [Universe progress endpoints](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/controller/UniverseProgressController.java): `Backend/src/main/java/com/filmgallery/Backend/controller/UniverseProgressController.java`
- [Universe progress service](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java): `Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java`

### Persistence

- [Account user](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/entity/User.java): `Backend/src/main/java/com/filmgallery/Backend/entity/User.java`
- [User repository](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/repository/UserRepository.java): `Backend/src/main/java/com/filmgallery/Backend/repository/UserRepository.java`
- [Movie progress repository](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/repository/MovieProgressRepository.java): `Backend/src/main/java/com/filmgallery/Backend/repository/MovieProgressRepository.java`
- [Universe progress repository](https://github.com/vinaykumar-jerripothula/filmgallery/blob/main/Backend/src/main/java/com/filmgallery/Backend/repository/UniverseProgressRepository.java): `Backend/src/main/java/com/filmgallery/Backend/repository/UniverseProgressRepository.java`

### Other components

- **Viewer**

## Connections

- Viewer → Application router: uses
- Application router → Login and signup: routes to (evidence: `Frontend/src/App.jsx`)
- Application router → Home browsing: routes to (evidence: `Frontend/src/App.jsx`)
- Application router → Category browsing: routes to (evidence: `Frontend/src/App.jsx`)
- Application router → Content details: routes to (evidence: `Frontend/src/App.jsx`)
- Application router → Progress state: dispatches (evidence: `Frontend/src/App.jsx`)
- Application router → Movie progress state: dispatches (evidence: `Frontend/src/App.jsx`)
- Application router → Content registry: loads
- Home browsing → Navigation bar: uses (evidence: `Frontend/src/pages/Home.jsx`)
- Content details → Content presentation: renders (evidence: `Frontend/src/components/template/ContentPage.jsx`)
- Content registry → Anime collections: imports (evidence: `Frontend/src/data/Collection/contentRegistry.js`)
- Catalog search → Content registry: searches (evidence: `Frontend/src/data/search/searchData.js`)
- Catalog search → People catalog: searches (evidence: `Frontend/src/data/search/searchData.js`)
- Catalog search → People enrichment: uses (evidence: `Frontend/src/data/search/searchData.js`)
- Progress state → API client: calls (evidence: `Frontend/src/store/progressSlice.js`)
- Movie progress state → API client: calls
- Authentication endpoints → Authentication service: delegates (evidence: `Backend/src/main/java/com/filmgallery/Backend/controller/AuthController.java`)
- Authentication service → User repository: reads and writes (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java`)
- Authentication service → JWT service: creates tokens (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java`)
- JWT request filter → JWT service: validates tokens (evidence: `Backend/src/main/java/com/filmgallery/Backend/config/JwtAuthenticationFilter.java`)
- Movie progress endpoints → Movie progress service: delegates (evidence: `Backend/src/main/java/com/filmgallery/Backend/controller/MovieProgressController.java`)
- Movie progress service → User repository: looks up user (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java`)
- Movie progress service → Movie progress repository: reads and writes (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java`)
- Universe progress endpoints → Universe progress service: delegates (evidence: `Backend/src/main/java/com/filmgallery/Backend/controller/UniverseProgressController.java`)
- Universe progress service → User repository: looks up user (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java`)
- Universe progress service → Universe progress repository: reads and writes (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java`)
- Authentication service → Account user: authenticates (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/AuthService.java`)
- Movie progress service → Account user: associates progress (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/MovieProgressService.java`)
- Universe progress service → Account user: associates progress (evidence: `Backend/src/main/java/com/filmgallery/Backend/service/UniverseProgressService.java`)
