# irfan-devops1/netflix-clone-devsecops-project architecture

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

- Interactive diagram: https://gitdiagram.com/irfan-devops1/netflix-clone-devsecops-project
- Repository: https://github.com/irfan-devops1/netflix-clone-devsecops-project

## Overview

This repository is the React/TypeScript frontend for a Netflix-style streaming catalog. Its user workflow is route selection into home browsing, genre exploration, or watching; catalog state and queries are organized around TMDB data, with detail and similar-title UI alongside playback controls. The README also describes container deployment and DevSecOps operations, but the supplied tree contains no corresponding pipeline or infrastructure implementation, so those are not mapped as runtime components. Some page and API modules were not excerpted; their internal calls are therefore omitted.

Main entry points: [`src/main.tsx`](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/main.tsx) (React entry), [`src/routes/index.tsx`](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/routes/index.tsx) (Route selection), [`src/components/DetailModal.tsx`](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/DetailModal.tsx) (Title details), [`src/store/slices/discover.ts`](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/discover.ts) (Discovery queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_routes["Route selection<br/>[index.tsx]"]
  node_layout["Main layout<br/>[MainLayout.tsx]"]
  node_header["Navigation and search<br/>[MainHeader.tsx]"]
end

subgraph group_catalog["Catalog discovery"]
  node_home["Home browsing<br/>[HomePage.tsx]"]
  node_genre["Genre exploration<br/>[GenreExplore.tsx]"]
  node_grid["Infinite catalog grid"]
  node_hero["Featured titles<br/>[HeroSection.tsx]"]
end

subgraph group_details["Details and playback"]
  node_watch["Watch page<br/>[WatchPage.tsx]"]
  node_modal["Title details<br/>[DetailModal.tsx]"]
  node_similar["Similar titles"]
  node_player["Video player<br/>[VideoJSPlayer.tsx]"]
  node_controls["Player controls"]
end

subgraph group_state["Data and state"]
  node_store[("Redux store<br/>[index.ts]")]
  node_api["TMDB API base<br/>[apiSlice.ts]"]
  node_discover["Discovery queries<br/>[discover.ts]"]
  node_configuration["App configuration<br/>[configuration.ts]"]
  node_genres["Genre data<br/>[genre.ts]"]
end

node_visitor(("Viewer"))
node_tmdb[("TMDB service")]

node_visitor -->|"opens app"| node_entry
node_entry -->|"provides state"| node_store
node_entry -->|"mounts routes"| node_routes
node_entry -->|"loads configuration"| node_configuration
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_genre
node_routes -->|"routes to"| node_watch
node_store -->|"registers reducer"| node_api
node_discover -->|"injects queries"| node_api
node_discover -->|"fetches catalog data"| node_tmdb
node_modal -->|"renders"| node_similar
node_modal -->|"renders"| node_player
node_player -.->|"uses controls"| node_controls

click node_entry "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/main.tsx"
click node_routes "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/routes/index.tsx"
click node_layout "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/layouts/MainLayout.tsx"
click node_header "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/layouts/MainHeader.tsx"
click node_home "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/pages/HomePage.tsx"
click node_genre "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/pages/GenreExplore.tsx"
click node_grid "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/GridWithInfiniteScroll.tsx"
click node_hero "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/HeroSection.tsx"
click node_watch "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/pages/WatchPage.tsx"
click node_modal "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/DetailModal.tsx"
click node_similar "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/SimilarVideoCard.tsx"
click node_player "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/watch/VideoJSPlayer.tsx"
click node_controls "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/watch/PlayerControlButton.tsx"
click node_store "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/index.ts"
click node_api "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/apiSlice.ts"
click node_discover "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/discover.ts"
click node_configuration "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/configuration.ts"
click node_genres "https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/genre.ts"

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_entry,node_routes,node_layout,node_header,node_visitor toneBlue
class node_home,node_genre,node_grid,node_hero,node_tmdb toneAmber
class node_watch,node_modal,node_similar,node_player,node_controls toneMint
class node_store,node_api,node_discover,node_configuration,node_genres toneRose
```

## Components

### Application shell

- [React entry](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/main.tsx): `src/main.tsx`
- [Route selection](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Main layout](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/layouts/MainLayout.tsx): `src/layouts/MainLayout.tsx`
- [Navigation and search](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/layouts/MainHeader.tsx): `src/components/layouts/MainHeader.tsx`

### Catalog discovery

- [Home browsing](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/pages/HomePage.tsx): `src/pages/HomePage.tsx`
- [Genre exploration](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/pages/GenreExplore.tsx): `src/pages/GenreExplore.tsx`
- [Infinite catalog grid](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/GridWithInfiniteScroll.tsx): `src/components/GridWithInfiniteScroll.tsx`
- [Featured titles](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`

### Details and playback

- [Watch page](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/pages/WatchPage.tsx): `src/pages/WatchPage.tsx`
- [Title details](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/DetailModal.tsx): `src/components/DetailModal.tsx`
- [Similar titles](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/SimilarVideoCard.tsx): `src/components/SimilarVideoCard.tsx`
- [Video player](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/watch/VideoJSPlayer.tsx): `src/components/watch/VideoJSPlayer.tsx`
- [Player controls](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/components/watch/PlayerControlButton.tsx): `src/components/watch/PlayerControlButton.tsx`

### Data and state

- [Redux store](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/index.ts): `src/store/index.ts`
- [TMDB API base](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/apiSlice.ts): `src/store/slices/apiSlice.ts`
- [Discovery queries](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/discover.ts): `src/store/slices/discover.ts`
- [App configuration](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/configuration.ts): `src/store/slices/configuration.ts`
- [Genre data](https://github.com/irfan-devops1/netflix-clone-devsecops-project/blob/main/src/store/slices/genre.ts): `src/store/slices/genre.ts`

### Other components

- **Viewer**
- **TMDB service**

## Connections

- Viewer → React entry: opens app
- React entry → Redux store: provides state (evidence: `src/main.tsx`)
- React entry → Route selection: mounts routes (evidence: `src/main.tsx`)
- React entry → App configuration: loads configuration (evidence: `src/main.tsx`)
- Route selection → Home browsing: routes to (evidence: `src/routes/index.tsx`)
- Route selection → Genre exploration: routes to (evidence: `src/routes/index.tsx`)
- Route selection → Watch page: routes to (evidence: `src/routes/index.tsx`)
- Redux store → TMDB API base: registers reducer (evidence: `src/store/index.ts`)
- Discovery queries → TMDB API base: injects queries (evidence: `src/store/slices/discover.ts`)
- Discovery queries → TMDB service: fetches catalog data (evidence: `src/store/slices/discover.ts`)
- Title details → Similar titles: renders (evidence: `src/components/DetailModal.tsx`)
- Title details → Video player: renders (evidence: `src/components/DetailModal.tsx`)
- Video player → Player controls: uses controls
