# ayat93a/psut-devops-bootcamp architecture

> Architecture diagram of the GitHub repository ayat93a/psut-devops-bootcamp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ayat93a/psut-devops-bootcamp
- Repository: https://github.com/ayat93a/psut-devops-bootcamp

## Overview

This repository is a bootcamp collection of separate application examples, not one integrated product. The largest product is a Netflix-style streaming application: users sign in, browse titles, view details, play media, and manage a watchlist; administrators can manage catalog content through Studio. A separate three-tier Todo app supports authenticated, per-user task management, while docker-lab1 contains small React and Next.js demonstrations. Unsampled media, watchlist, and Studio behavior is shown only where the tree or source index supports it; several cross-service links remain unverified.

Main entry points: [`netflix/frontends/shell/src/App.jsx`](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/shell/src/App.jsx) (App shell), [`netflix/services/catalog-service/src/movies/movies.service.ts`](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movies.service.ts) (Movie catalog), [`netflix/frontends/mfe-browse/src/api.js`](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/api.js) (Browse API client), [`3-tire-app/frontend/src/App.jsx`](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/App.jsx) (Session app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_todo["Three-tier Todo"]
  node_todo_app["Session app<br/>[App.jsx]"]
  node_todo_auth["Authentication form<br/>[AuthForm.jsx]"]
  node_todo_list["Task list<br/>[TodoList.jsx]"]
  node_todo_api["API client<br/>[api.js]"]
  node_todo_service["Todo API<br/>[Program.cs]"]
  node_todo_dbcontext["EF data context<br/>[TodoDbContext.cs]"]
  node_todo_model["Todo model<br/>[Todo.cs]"]
  node_todo_db[("PostgreSQL")]
end

subgraph group_netflix_ui["Netflix Frontends"]
  node_shell["App shell<br/>[App.jsx]"]
  node_auth_mfe["Authentication MFE<br/>[AuthPage.jsx]"]
  node_browse_home["Browse home<br/>[Home.jsx]"]
  node_title_details["Title details<br/>[TitleDetails.jsx]"]
  node_player["Media player<br/>[Player.jsx]"]
  node_browse_api["Browse API client<br/>[api.js]"]
  node_studio["Admin Studio"]
end

subgraph group_netflix_services["Netflix Services"]
  node_auth_service["Authentication service"]
  node_catalog_controller["Catalog routes"]
  node_catalog_service["Movie catalog<br/>[movies.service.ts]"]
  node_movie_schema["Movie schema<br/>[movie.schema.ts]"]
  node_events["Event service<br/>[events.service.ts]"]
  node_rabbit["RabbitMQ"]
  node_catalog_db[("MongoDB catalog")]
  node_media["Media service"]
  node_media_storage[("S3-compatible storage<br/>[storage.py]")]
  node_media_init["Storage initializer<br/>[init_storage.py]"]
  node_watchlist["Watchlist consumer<br/>[EventConsumer.cs]"]
end

subgraph group_demos["Docker Lab Demos"]
  node_react_demo["React counter demo<br/>[App.jsx]"]
  node_next_demo["Next.js demo page<br/>[page.js]"]
end

node_todo_user(("Todo user"))
node_viewer(("Viewer"))

node_todo_user -->|"uses"| node_todo_app
node_todo_app -->|"renders signed out"| node_todo_auth
node_todo_app -->|"renders signed in"| node_todo_list
node_todo_auth -->|"calls"| node_todo_api
node_todo_list -->|"calls"| node_todo_api
node_todo_api -.->|"sends requests"| node_todo_service
node_todo_service -->|"uses"| node_todo_dbcontext
node_todo_dbcontext -->|"maps"| node_todo_model
node_todo_service -->|"reads and writes"| node_todo_db
node_viewer -.->|"uses"| node_shell
node_shell -->|"loads remotely"| node_auth_mfe
node_shell -->|"routes to"| node_browse_home
node_shell -->|"routes to"| node_title_details
node_shell -->|"routes to"| node_player
node_browse_home -->|"calls"| node_browse_api
node_title_details -->|"calls"| node_browse_api
node_player -->|"calls"| node_browse_api
node_browse_api -.->|"requests catalog"| node_catalog_controller
node_shell -->|"links admins"| node_studio
node_studio -.->|"manages titles"| node_catalog_controller
node_auth_mfe -.->|"authenticates"| node_auth_service
node_catalog_controller -->|"delegates"| node_catalog_service
node_catalog_service -->|"queries model"| node_movie_schema
node_catalog_service -->|"reads and writes"| node_catalog_db
node_catalog_service -->|"publishes and subscribes"| node_events
node_events -->|"publishes and consumes"| node_rabbit
node_media_init -->|"initializes"| node_media_storage
node_media -.->|"stores media"| node_media_storage
node_media -.->|"reports uploads"| node_events
node_watchlist -.->|"consumes events"| node_rabbit
node_viewer -.->|"uses demo"| node_react_demo
node_viewer -.->|"uses demo"| node_next_demo

click node_todo_app "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/App.jsx"
click node_todo_auth "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/AuthForm.jsx"
click node_todo_list "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/TodoList.jsx"
click node_todo_api "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/api.js"
click node_todo_service "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/todo-service/Program.cs"
click node_todo_dbcontext "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/todo-service/TodoDbContext.cs"
click node_todo_model "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/todo-service/Todo.cs"
click node_shell "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/shell/src/App.jsx"
click node_auth_mfe "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-auth/src/AuthPage.jsx"
click node_browse_home "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/Home.jsx"
click node_title_details "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/TitleDetails.jsx"
click node_player "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/Player.jsx"
click node_browse_api "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/api.js"
click node_studio "https://github.com/ayat93a/psut-devops-bootcamp/tree/main/netflix/frontends/studio/app"
click node_auth_service "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/auth-service/src/main/java/com/netflix/auth/AuthController.java"
click node_catalog_controller "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movies.controller.ts"
click node_catalog_service "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movies.service.ts"
click node_movie_schema "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movie.schema.ts"
click node_events "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/common/events.service.ts"
click node_media "https://github.com/ayat93a/psut-devops-bootcamp/tree/main/netflix/services/media-service/media"
click node_media_storage "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/media-service/media/storage.py"
click node_media_init "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/media-service/media/management/commands/init_storage.py"
click node_watchlist "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/watchlist-service/EventConsumer.cs"
click node_react_demo "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/docker-lab1/react-app/src/App.jsx"
click node_next_demo "https://github.com/ayat93a/psut-devops-bootcamp/blob/main/docker-lab1/next-app/app/page.js"

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_todo_app,node_todo_auth,node_todo_list,node_todo_api,node_todo_service,node_todo_dbcontext,node_todo_model,node_todo_db,node_todo_user,node_viewer toneBlue
class node_shell,node_auth_mfe,node_browse_home,node_title_details,node_player,node_browse_api,node_studio toneAmber
class node_auth_service,node_catalog_controller,node_catalog_service,node_movie_schema,node_events,node_rabbit,node_catalog_db,node_media,node_media_storage,node_media_init,node_watchlist toneMint
class node_react_demo,node_next_demo toneRose
```

## Components

### Three-tier Todo

- [Session app](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/App.jsx): `3-tire-app/frontend/src/App.jsx`
- [Authentication form](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/AuthForm.jsx): `3-tire-app/frontend/src/AuthForm.jsx`
- [Task list](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/TodoList.jsx): `3-tire-app/frontend/src/TodoList.jsx`
- [API client](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/frontend/src/api.js): `3-tire-app/frontend/src/api.js`
- [Todo API](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/todo-service/Program.cs): `3-tire-app/todo-service/Program.cs`
- [EF data context](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/todo-service/TodoDbContext.cs): `3-tire-app/todo-service/TodoDbContext.cs`
- [Todo model](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/3-tire-app/todo-service/Todo.cs): `3-tire-app/todo-service/Todo.cs`
- **PostgreSQL**

### Netflix Frontends

- [App shell](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/shell/src/App.jsx): `netflix/frontends/shell/src/App.jsx`
- [Authentication MFE](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-auth/src/AuthPage.jsx): `netflix/frontends/mfe-auth/src/AuthPage.jsx`
- [Browse home](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/Home.jsx): `netflix/frontends/mfe-browse/src/Home.jsx`
- [Title details](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/TitleDetails.jsx): `netflix/frontends/mfe-browse/src/TitleDetails.jsx`
- [Media player](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/Player.jsx): `netflix/frontends/mfe-browse/src/Player.jsx`
- [Browse API client](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/frontends/mfe-browse/src/api.js): `netflix/frontends/mfe-browse/src/api.js`
- [Admin Studio](https://github.com/ayat93a/psut-devops-bootcamp/tree/main/netflix/frontends/studio/app): `netflix/frontends/studio/app`

### Netflix Services

- [Authentication service](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/auth-service/src/main/java/com/netflix/auth/AuthController.java): `netflix/services/auth-service/src/main/java/com/netflix/auth/AuthController.java`
- [Catalog routes](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movies.controller.ts): `netflix/services/catalog-service/src/movies/movies.controller.ts`
- [Movie catalog](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movies.service.ts): `netflix/services/catalog-service/src/movies/movies.service.ts`
- [Movie schema](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/movies/movie.schema.ts): `netflix/services/catalog-service/src/movies/movie.schema.ts`
- [Event service](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/catalog-service/src/common/events.service.ts): `netflix/services/catalog-service/src/common/events.service.ts`
- **RabbitMQ**
- **MongoDB catalog**
- [Media service](https://github.com/ayat93a/psut-devops-bootcamp/tree/main/netflix/services/media-service/media): `netflix/services/media-service/media`
- [S3-compatible storage](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/media-service/media/storage.py): `netflix/services/media-service/media/storage.py`
- [Storage initializer](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/media-service/media/management/commands/init_storage.py): `netflix/services/media-service/media/management/commands/init_storage.py`
- [Watchlist consumer](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/netflix/services/watchlist-service/EventConsumer.cs): `netflix/services/watchlist-service/EventConsumer.cs`

### Docker Lab Demos

- [React counter demo](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/docker-lab1/react-app/src/App.jsx): `docker-lab1/react-app/src/App.jsx`
- [Next.js demo page](https://github.com/ayat93a/psut-devops-bootcamp/blob/main/docker-lab1/next-app/app/page.js): `docker-lab1/next-app/app/page.js`

### Other components

- **Todo user**
- **Viewer**

## Connections

- Todo user → Session app: uses (evidence: `3-tire-app/frontend/src/App.jsx`)
- Session app → Authentication form: renders signed out (evidence: `3-tire-app/frontend/src/App.jsx`)
- Session app → Task list: renders signed in (evidence: `3-tire-app/frontend/src/App.jsx`)
- Authentication form → API client: calls (evidence: `3-tire-app/frontend/src/AuthForm.jsx`)
- Task list → API client: calls (evidence: `3-tire-app/frontend/src/TodoList.jsx`)
- API client → Todo API: sends requests
- Todo API → EF data context: uses (evidence: `3-tire-app/todo-service/Program.cs`)
- EF data context → Todo model: maps (evidence: `3-tire-app/todo-service/TodoDbContext.cs`)
- Todo API → PostgreSQL: reads and writes (evidence: `3-tire-app/todo-service/Program.cs`)
- Viewer → App shell: uses
- App shell → Authentication MFE: loads remotely (evidence: `netflix/frontends/shell/src/App.jsx`)
- App shell → Browse home: routes to (evidence: `netflix/frontends/shell/src/App.jsx`)
- App shell → Title details: routes to (evidence: `netflix/frontends/shell/src/App.jsx`)
- App shell → Media player: routes to (evidence: `netflix/frontends/shell/src/App.jsx`)
- Browse home → Browse API client: calls (evidence: `netflix/frontends/mfe-browse/src/Home.jsx`)
- Title details → Browse API client: calls (evidence: `netflix/frontends/mfe-browse/src/TitleDetails.jsx`)
- Media player → Browse API client: calls (evidence: `netflix/frontends/mfe-browse/src/Player.jsx`)
- Browse API client → Catalog routes: requests catalog
- App shell → Admin Studio: links admins (evidence: `netflix/frontends/shell/src/App.jsx`)
- Admin Studio → Catalog routes: manages titles
- Authentication MFE → Authentication service: authenticates
- Catalog routes → Movie catalog: delegates (evidence: `netflix/services/catalog-service/src/movies/movies.controller.ts`)
- Movie catalog → Movie schema: queries model (evidence: `netflix/services/catalog-service/src/movies/movies.service.ts`)
- Movie catalog → MongoDB catalog: reads and writes (evidence: `netflix/services/catalog-service/src/movies/movies.service.ts`)
- Movie catalog → Event service: publishes and subscribes (evidence: `netflix/services/catalog-service/src/movies/movies.service.ts`)
- Event service → RabbitMQ: publishes and consumes (evidence: `netflix/services/catalog-service/src/common/events.service.ts`)
- Storage initializer → S3-compatible storage: initializes (evidence: `netflix/services/media-service/media/management/commands/init_storage.py`)
- Media service → S3-compatible storage: stores media (evidence: `netflix/services/media-service/media/management/commands/init_storage.py`)
- Media service → Event service: reports uploads
- Watchlist consumer → RabbitMQ: consumes events
- Viewer → React counter demo: uses demo
- Viewer → Next.js demo page: uses demo
