# n4si/devsecops-project architecture

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

- Interactive diagram: https://gitdiagram.com/n4si/devsecops-project
- Repository: https://github.com/n4si/devsecops-project

## Overview

This is a React/TypeScript Netflix-style catalog and playback frontend backed by TMDB. The main user journey is routed browsing across the home and genre views, opening title details, and watching a selected title; the UI also exposes search, similar titles, and player controls. The sampled code confirms route wiring, API query construction, store setup, and several component dependencies. Other page-to-component and player-to-data connections are not shown in the excerpts, so they are omitted rather than inferred.

Main entry points: [`src/main.tsx`](https://github.com/n4si/devsecops-project/blob/main/src/main.tsx) (React bootstrap), [`src/routes/index.tsx`](https://github.com/n4si/devsecops-project/blob/main/src/routes/index.tsx) (Route table), [`src/store/slices/apiSlice.ts`](https://github.com/n4si/devsecops-project/blob/main/src/store/slices/apiSlice.ts) (TMDB API base), [`src/store/index.ts`](https://github.com/n4si/devsecops-project/blob/main/src/store/index.ts) (Redux store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and routing"]
  node_entrypoint["React bootstrap<br/>[main.tsx]"]
  node_router["Route table<br/>[index.tsx]"]
  node_shell["Main layout<br/>[MainLayout.tsx]"]
  node_theme["Dark theme<br/>[palette.ts]"]
  node_class_names["MUI class names"]
end

subgraph group_catalog["Catalog and discovery"]
  node_home["Home browse<br/>[HomePage.tsx]"]
  node_genre["Genre explore<br/>[GenreExplore.tsx]"]
  node_watch["Watch page<br/>[WatchPage.tsx]"]
  node_search["Title search<br/>[SearchBox.tsx]"]
  node_catalog_grid["Paged catalog grid"]
end

subgraph group_presentation["Title and playback UI"]
  node_detail["Title details<br/>[DetailModal.tsx]"]
  node_hero["Featured title<br/>[HeroSection.tsx]"]
  node_slider["Video slider<br/>[SlickSlider.tsx]"]
  node_slider_nav["Slider navigation"]
  node_similar["Similar titles"]
  node_player["Video player<br/>[VideoJSPlayer.tsx]"]
  node_player_controls["Player controls"]
  node_volume["Volume control"]
  node_loading["Loading screen"]
end

subgraph group_state["API and application state"]
  node_store[("Redux store<br/>[index.ts]")]
  node_api["TMDB API base<br/>[apiSlice.ts]"]
  node_configuration["API configuration<br/>[configuration.ts]"]
  node_discover["Catalog queries<br/>[discover.ts]"]
  node_genre_state["Genre state<br/>[genre.ts]"]
  node_movie_types["Movie data types<br/>[Movie.ts]"]
  node_common_types["Shared data types<br/>[Common.ts]"]
  node_common_utils["Common utilities<br/>[common.ts]"]
end

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

node_viewer -.->|"navigates"| node_router
node_entrypoint -->|"installs"| node_router
node_entrypoint -->|"provides"| node_store
node_entrypoint -->|"initiates"| node_configuration
node_entrypoint -->|"configures"| node_theme
node_entrypoint -->|"loads"| node_class_names
node_entrypoint -->|"uses fallback"| node_loading
node_router -->|"renders"| node_shell
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_genre
node_router -->|"routes to"| node_watch
node_shell -->|"renders"| node_search
node_store -->|"registers"| node_api
node_store -->|"registers"| node_discover
node_configuration -->|"extends"| node_api
node_genre_state -->|"uses"| node_api
node_discover -->|"extends"| node_api
node_discover -->|"requests catalog and titles"| node_tmdb
node_detail -->|"renders"| node_similar
node_detail -->|"renders"| node_player
node_slider -->|"uses"| node_slider_nav
node_volume -->|"renders"| node_player_controls
node_movie_types -->|"imports types"| node_common_types

click node_entrypoint "https://github.com/n4si/devsecops-project/blob/main/src/main.tsx"
click node_router "https://github.com/n4si/devsecops-project/blob/main/src/routes/index.tsx"
click node_shell "https://github.com/n4si/devsecops-project/blob/main/src/layouts/MainLayout.tsx"
click node_home "https://github.com/n4si/devsecops-project/blob/main/src/pages/HomePage.tsx"
click node_genre "https://github.com/n4si/devsecops-project/blob/main/src/pages/GenreExplore.tsx"
click node_watch "https://github.com/n4si/devsecops-project/blob/main/src/pages/WatchPage.tsx"
click node_search "https://github.com/n4si/devsecops-project/blob/main/src/components/SearchBox.tsx"
click node_catalog_grid "https://github.com/n4si/devsecops-project/blob/main/src/components/GridWithInfiniteScroll.tsx"
click node_detail "https://github.com/n4si/devsecops-project/blob/main/src/components/DetailModal.tsx"
click node_hero "https://github.com/n4si/devsecops-project/blob/main/src/components/HeroSection.tsx"
click node_slider "https://github.com/n4si/devsecops-project/blob/main/src/components/slick-slider/SlickSlider.tsx"
click node_slider_nav "https://github.com/n4si/devsecops-project/blob/main/src/components/slick-slider/CustomNavigation.tsx"
click node_similar "https://github.com/n4si/devsecops-project/blob/main/src/components/SimilarVideoCard.tsx"
click node_player "https://github.com/n4si/devsecops-project/blob/main/src/components/watch/VideoJSPlayer.tsx"
click node_player_controls "https://github.com/n4si/devsecops-project/blob/main/src/components/watch/PlayerControlButton.tsx"
click node_volume "https://github.com/n4si/devsecops-project/blob/main/src/components/watch/VolumeControllers.tsx"
click node_loading "https://github.com/n4si/devsecops-project/blob/main/src/components/MainLoadingScreen.tsx"
click node_store "https://github.com/n4si/devsecops-project/blob/main/src/store/index.ts"
click node_api "https://github.com/n4si/devsecops-project/blob/main/src/store/slices/apiSlice.ts"
click node_configuration "https://github.com/n4si/devsecops-project/blob/main/src/store/slices/configuration.ts"
click node_discover "https://github.com/n4si/devsecops-project/blob/main/src/store/slices/discover.ts"
click node_genre_state "https://github.com/n4si/devsecops-project/blob/main/src/store/slices/genre.ts"
click node_theme "https://github.com/n4si/devsecops-project/blob/main/src/theme/palette.ts"
click node_class_names "https://github.com/n4si/devsecops-project/blob/main/src/CustomClassNameSetup.ts"
click node_movie_types "https://github.com/n4si/devsecops-project/blob/main/src/types/Movie.ts"
click node_common_types "https://github.com/n4si/devsecops-project/blob/main/src/types/Common.ts"
click node_common_utils "https://github.com/n4si/devsecops-project/blob/main/src/utils/common.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_entrypoint,node_router,node_shell,node_theme,node_class_names,node_viewer toneBlue
class node_home,node_genre,node_watch,node_search,node_catalog_grid toneAmber
class node_detail,node_hero,node_slider,node_slider_nav,node_similar,node_player,node_player_controls,node_volume,node_loading toneMint
class node_store,node_api,node_configuration,node_discover,node_genre_state,node_movie_types,node_common_types,node_common_utils toneRose
class node_tmdb toneIndigo
```

## Components

### App entry and routing

- [React bootstrap](https://github.com/n4si/devsecops-project/blob/main/src/main.tsx): `src/main.tsx`
- [Route table](https://github.com/n4si/devsecops-project/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Main layout](https://github.com/n4si/devsecops-project/blob/main/src/layouts/MainLayout.tsx): `src/layouts/MainLayout.tsx`
- [Dark theme](https://github.com/n4si/devsecops-project/blob/main/src/theme/palette.ts): `src/theme/palette.ts`
- [MUI class names](https://github.com/n4si/devsecops-project/blob/main/src/CustomClassNameSetup.ts): `src/CustomClassNameSetup.ts`

### Catalog and discovery

- [Home browse](https://github.com/n4si/devsecops-project/blob/main/src/pages/HomePage.tsx): `src/pages/HomePage.tsx`
- [Genre explore](https://github.com/n4si/devsecops-project/blob/main/src/pages/GenreExplore.tsx): `src/pages/GenreExplore.tsx`
- [Watch page](https://github.com/n4si/devsecops-project/blob/main/src/pages/WatchPage.tsx): `src/pages/WatchPage.tsx`
- [Title search](https://github.com/n4si/devsecops-project/blob/main/src/components/SearchBox.tsx): `src/components/SearchBox.tsx`
- [Paged catalog grid](https://github.com/n4si/devsecops-project/blob/main/src/components/GridWithInfiniteScroll.tsx): `src/components/GridWithInfiniteScroll.tsx`

### Title and playback UI

- [Title details](https://github.com/n4si/devsecops-project/blob/main/src/components/DetailModal.tsx): `src/components/DetailModal.tsx`
- [Featured title](https://github.com/n4si/devsecops-project/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`
- [Video slider](https://github.com/n4si/devsecops-project/blob/main/src/components/slick-slider/SlickSlider.tsx): `src/components/slick-slider/SlickSlider.tsx`
- [Slider navigation](https://github.com/n4si/devsecops-project/blob/main/src/components/slick-slider/CustomNavigation.tsx): `src/components/slick-slider/CustomNavigation.tsx`
- [Similar titles](https://github.com/n4si/devsecops-project/blob/main/src/components/SimilarVideoCard.tsx): `src/components/SimilarVideoCard.tsx`
- [Video player](https://github.com/n4si/devsecops-project/blob/main/src/components/watch/VideoJSPlayer.tsx): `src/components/watch/VideoJSPlayer.tsx`
- [Player controls](https://github.com/n4si/devsecops-project/blob/main/src/components/watch/PlayerControlButton.tsx): `src/components/watch/PlayerControlButton.tsx`
- [Volume control](https://github.com/n4si/devsecops-project/blob/main/src/components/watch/VolumeControllers.tsx): `src/components/watch/VolumeControllers.tsx`
- [Loading screen](https://github.com/n4si/devsecops-project/blob/main/src/components/MainLoadingScreen.tsx): `src/components/MainLoadingScreen.tsx`

### API and application state

- [Redux store](https://github.com/n4si/devsecops-project/blob/main/src/store/index.ts): `src/store/index.ts`
- [TMDB API base](https://github.com/n4si/devsecops-project/blob/main/src/store/slices/apiSlice.ts): `src/store/slices/apiSlice.ts`
- [API configuration](https://github.com/n4si/devsecops-project/blob/main/src/store/slices/configuration.ts): `src/store/slices/configuration.ts`
- [Catalog queries](https://github.com/n4si/devsecops-project/blob/main/src/store/slices/discover.ts): `src/store/slices/discover.ts`
- [Genre state](https://github.com/n4si/devsecops-project/blob/main/src/store/slices/genre.ts): `src/store/slices/genre.ts`
- [Movie data types](https://github.com/n4si/devsecops-project/blob/main/src/types/Movie.ts): `src/types/Movie.ts`
- [Shared data types](https://github.com/n4si/devsecops-project/blob/main/src/types/Common.ts): `src/types/Common.ts`
- [Common utilities](https://github.com/n4si/devsecops-project/blob/main/src/utils/common.ts): `src/utils/common.ts`

### Other components

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

## Connections

- Viewer → Route table: navigates
- React bootstrap → Route table: installs (evidence: `src/main.tsx`)
- React bootstrap → Redux store: provides (evidence: `src/main.tsx`)
- React bootstrap → API configuration: initiates (evidence: `src/main.tsx`)
- React bootstrap → Dark theme: configures (evidence: `src/main.tsx`)
- React bootstrap → MUI class names: loads (evidence: `src/main.tsx`)
- React bootstrap → Loading screen: uses fallback (evidence: `src/main.tsx`)
- Route table → Main layout: renders (evidence: `src/routes/index.tsx`)
- Route table → Home browse: routes to (evidence: `src/routes/index.tsx`)
- Route table → Genre explore: routes to (evidence: `src/routes/index.tsx`)
- Route table → Watch page: routes to (evidence: `src/routes/index.tsx`)
- Main layout → Title search: renders
- Redux store → TMDB API base: registers (evidence: `src/store/index.ts`)
- Redux store → Catalog queries: registers (evidence: `src/store/index.ts`)
- API configuration → TMDB API base: extends (evidence: `src/store/slices/configuration.ts`)
- Genre state → TMDB API base: uses (evidence: `src/store/slices/genre.ts`)
- Catalog queries → TMDB API base: extends (evidence: `src/store/slices/discover.ts`)
- Catalog queries → TMDB service: requests catalog and titles (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 slider → Slider navigation: uses (evidence: `src/components/slick-slider/SlickSlider.tsx`)
- Volume control → Player controls: renders (evidence: `src/components/watch/VolumeControllers.tsx`)
- Movie data types → Shared data types: imports types (evidence: `src/types/Movie.ts`)
