# medvidd/cinecore_web architecture

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

- Interactive diagram: https://gitdiagram.com/medvidd/cinecore_web
- Repository: https://github.com/medvidd/cinecore_web

## Overview

CineCore is a film pre-production management application: users create or select a project, then work in its workspace to manage script, cast, crew and production resources, plan shoot days, and review a dashboard. The Angular client routes workspace features through a shared HTTP API to ASP.NET controllers; those controllers use the EF Core context to query and persist project data. The graph retains the documented workspace branches, but several links are based only on route definitions or API endpoints; unsampled controller internals are not asserted.

Main entry points: [`CineCoreFront/src/app/app.routes.ts`](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/app.routes.ts) (App routes), [`CineCoreBack/CineCoreBack/Program.cs`](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Program.cs) (Backend endpoints), [`CineCoreBack/CineCoreBack/Models/DbConfig.cs`](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/DbConfig.cs) (EF Core context), [`CineCoreFront/src/app/core/services/api.ts`](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/core/services/api.ts) (HTTP API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_routes["App routes<br/>[app.routes.ts]"]
  node_projects["Project management<br/>[projects.ts]"]
  node_project_form["Project editor<br/>[project-modal.ts]"]
  node_account["Account<br/>[account.ts]"]
  node_workspace["Workspace shell"]
  node_dashboard_ui["Dashboard view<br/>[dashboard.ts]"]
  node_crew_ui["Crew view<br/>[crew.ts]"]
  node_resources_ui["Resources view<br/>[resources.ts]"]
  node_casting_ui["Casting view<br/>[casting.ts]"]
  node_planner_ui["Planner view<br/>[planner.ts]"]
  node_script_ui["Script view<br/>[script.ts]"]
  node_api["HTTP API client<br/>[api.ts]"]
end

subgraph group_backend["Application API"]
  node_http["Backend endpoints<br/>[Program.cs]"]
  node_project_api["Projects API"]
  node_crew_api["Crew API<br/>[CrewController.cs]"]
  node_dashboard_api["Dashboard API"]
  node_resources_api["Locations and props API"]
  node_casting_api["Casting API"]
  node_planner_api["Planner API"]
  node_script_api["Script API"]
  node_users_api["User API<br/>[UsersController.cs]"]
end

subgraph group_domain["Production domain"]
  node_project_domain["Projects and membership<br/>[Project.cs]"]
  node_script_domain["Scenes and script<br/>[ScriptElement.cs]"]
  node_cast_domain["Roles and casting<br/>[Casting.cs]"]
  node_resource_domain["Locations and resources<br/>[Resource.cs]"]
  node_schedule_domain["Shoot day schedule<br/>[ShootDay.cs]"]
end

subgraph group_persistence["Persistence"]
  node_db[("Relational database")]
  node_context["EF Core context<br/>[DbConfig.cs]"]
end

node_user(("Film team user"))

node_user -->|"opens app"| node_routes
node_routes -->|"routes to"| node_projects
node_routes -->|"routes to"| node_account
node_routes -->|"routes to"| node_workspace
node_routes -->|"routes to"| node_dashboard_ui
node_routes -->|"routes to"| node_crew_ui
node_routes -->|"routes to"| node_resources_ui
node_routes -->|"routes to"| node_casting_ui
node_routes -->|"routes to"| node_planner_ui
node_routes -->|"routes to"| node_script_ui
node_projects -->|"opens editor"| node_project_form
node_project_form -->|"requests projects"| node_api
node_projects -->|"requests projects"| node_api
node_account -->|"requests account data"| node_api
node_crew_ui -->|"requests crew"| node_api
node_resources_ui -->|"requests resources"| node_api
node_casting_ui -->|"requests casting"| node_api
node_planner_ui -->|"requests schedule"| node_api
node_api -->|"sends HTTP"| node_http
node_http -.->|"dispatches requests"| node_project_api
node_http -.->|"dispatches requests"| node_crew_api
node_http -.->|"dispatches requests"| node_dashboard_api
node_http -.->|"dispatches requests"| node_resources_api
node_http -.->|"dispatches requests"| node_casting_api
node_http -.->|"dispatches requests"| node_planner_api
node_http -.->|"dispatches requests"| node_script_api
node_http -.->|"dispatches requests"| node_users_api
node_project_api -.->|"queries and saves"| node_context
node_crew_api -->|"queries and saves"| node_context
node_dashboard_api -->|"queries data"| node_context
node_resources_api -->|"queries and saves"| node_context
node_casting_api -->|"queries and saves"| node_context
node_planner_api -->|"queries and saves"| node_context
node_script_api -->|"queries and saves"| node_context
node_users_api -->|"queries and saves"| node_context
node_context -->|"maps and persists"| node_db
node_crew_api -->|"uses membership"| node_project_domain
node_dashboard_api -->|"reads shoot days"| node_schedule_domain
node_resources_api -->|"manages locations"| node_resource_domain
node_casting_api -->|"manages casting"| node_cast_domain
node_planner_api -->|"plans shoot days"| node_schedule_domain
node_planner_api -->|"reads scene data"| node_script_domain
node_planner_api -->|"reads resource data"| node_resource_domain
node_script_api -->|"edits scenes"| node_script_domain
node_script_api -->|"updates roles"| node_cast_domain
node_script_api -->|"links resources"| node_resource_domain

click node_routes "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/app.routes.ts"
click node_projects "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/projects/projects.ts"
click node_project_form "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/shared/components/project-modal/project-modal.ts"
click node_account "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/account/account.ts"
click node_workspace "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/workspace-layout/workspace-layout.ts"
click node_dashboard_ui "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/dashboard/dashboard.ts"
click node_crew_ui "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/crew/crew.ts"
click node_resources_ui "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/resources/resources.ts"
click node_casting_ui "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/casting/casting.ts"
click node_planner_ui "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/planner/planner.ts"
click node_script_ui "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/script/script.ts"
click node_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/core/services/api.ts"
click node_http "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Program.cs"
click node_project_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/ProjectsController.cs"
click node_crew_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/CrewController.cs"
click node_dashboard_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/DashboardController.cs"
click node_resources_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/LocationsController.cs"
click node_casting_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/CastingController.cs"
click node_planner_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/PlannerController.cs"
click node_script_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/ScriptController.cs"
click node_users_api "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/UsersController.cs"
click node_project_domain "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/Project.cs"
click node_script_domain "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/ScriptElement.cs"
click node_cast_domain "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/Casting.cs"
click node_resource_domain "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/Resource.cs"
click node_schedule_domain "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/ShootDay.cs"
click node_context "https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/DbConfig.cs"

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_routes,node_projects,node_project_form,node_account,node_workspace,node_dashboard_ui,node_crew_ui,node_resources_ui,node_casting_ui,node_planner_ui,node_script_ui,node_api,node_user toneBlue
class node_http,node_project_api,node_crew_api,node_dashboard_api,node_resources_api,node_casting_api,node_planner_api,node_script_api,node_users_api toneAmber
class node_project_domain,node_script_domain,node_cast_domain,node_resource_domain,node_schedule_domain toneMint
class node_db,node_context toneRose
```

## Components

### Web client

- [App routes](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/app.routes.ts): `CineCoreFront/src/app/app.routes.ts`
- [Project management](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/projects/projects.ts): `CineCoreFront/src/app/features/projects/projects.ts`
- [Project editor](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/shared/components/project-modal/project-modal.ts): `CineCoreFront/src/app/shared/components/project-modal/project-modal.ts`
- [Account](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/account/account.ts): `CineCoreFront/src/app/features/account/account.ts`
- [Workspace shell](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/workspace-layout/workspace-layout.ts): `CineCoreFront/src/app/features/workspace/workspace-layout/workspace-layout.ts`
- [Dashboard view](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/dashboard/dashboard.ts): `CineCoreFront/src/app/features/workspace/dashboard/dashboard.ts`
- [Crew view](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/crew/crew.ts): `CineCoreFront/src/app/features/workspace/crew/crew.ts`
- [Resources view](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/resources/resources.ts): `CineCoreFront/src/app/features/workspace/resources/resources.ts`
- [Casting view](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/casting/casting.ts): `CineCoreFront/src/app/features/workspace/casting/casting.ts`
- [Planner view](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/planner/planner.ts): `CineCoreFront/src/app/features/workspace/planner/planner.ts`
- [Script view](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/features/workspace/script/script.ts): `CineCoreFront/src/app/features/workspace/script/script.ts`
- [HTTP API client](https://github.com/medvidd/cinecore_web/blob/master/CineCoreFront/src/app/core/services/api.ts): `CineCoreFront/src/app/core/services/api.ts`

### Application API

- [Backend endpoints](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Program.cs): `CineCoreBack/CineCoreBack/Program.cs`
- [Projects API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/ProjectsController.cs): `CineCoreBack/CineCoreBack/Controllers/ProjectsController.cs`
- [Crew API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/CrewController.cs): `CineCoreBack/CineCoreBack/Controllers/CrewController.cs`
- [Dashboard API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/DashboardController.cs): `CineCoreBack/CineCoreBack/Controllers/DashboardController.cs`
- [Locations and props API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/LocationsController.cs): `CineCoreBack/CineCoreBack/Controllers/LocationsController.cs`
- [Casting API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/CastingController.cs): `CineCoreBack/CineCoreBack/Controllers/CastingController.cs`
- [Planner API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/PlannerController.cs): `CineCoreBack/CineCoreBack/Controllers/PlannerController.cs`
- [Script API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/ScriptController.cs): `CineCoreBack/CineCoreBack/Controllers/ScriptController.cs`
- [User API](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Controllers/UsersController.cs): `CineCoreBack/CineCoreBack/Controllers/UsersController.cs`

### Production domain

- [Projects and membership](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/Project.cs): `CineCoreBack/CineCoreBack/Models/Project.cs`
- [Scenes and script](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/ScriptElement.cs): `CineCoreBack/CineCoreBack/Models/ScriptElement.cs`
- [Roles and casting](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/Casting.cs): `CineCoreBack/CineCoreBack/Models/Casting.cs`
- [Locations and resources](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/Resource.cs): `CineCoreBack/CineCoreBack/Models/Resource.cs`
- [Shoot day schedule](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/ShootDay.cs): `CineCoreBack/CineCoreBack/Models/ShootDay.cs`

### Persistence

- **Relational database**
- [EF Core context](https://github.com/medvidd/cinecore_web/blob/master/CineCoreBack/CineCoreBack/Models/DbConfig.cs): `CineCoreBack/CineCoreBack/Models/DbConfig.cs`

### Other components

- **Film team user**

## Connections

- Film team user → App routes: opens app
- App routes → Project management: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Account: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Workspace shell: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Dashboard view: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Crew view: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Resources view: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Casting view: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Planner view: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- App routes → Script view: routes to (evidence: `CineCoreFront/src/app/app.routes.ts`)
- Project management → Project editor: opens editor (evidence: `CineCoreFront/src/app/features/projects/projects.ts`)
- Project editor → HTTP API client: requests projects (evidence: `CineCoreFront/src/app/shared/components/project-modal/project-modal.ts`)
- Project management → HTTP API client: requests projects (evidence: `CineCoreFront/src/app/features/projects/projects.ts`)
- Account → HTTP API client: requests account data (evidence: `CineCoreFront/src/app/features/account/account.ts`)
- Crew view → HTTP API client: requests crew (evidence: `CineCoreFront/src/app/features/workspace/crew/crew.ts`)
- Resources view → HTTP API client: requests resources (evidence: `CineCoreFront/src/app/features/workspace/resources/resources.ts`)
- Casting view → HTTP API client: requests casting (evidence: `CineCoreFront/src/app/features/workspace/casting/casting.ts`)
- Planner view → HTTP API client: requests schedule (evidence: `CineCoreFront/src/app/features/workspace/planner/planner.ts`)
- HTTP API client → Backend endpoints: sends HTTP (evidence: `CineCoreFront/src/app/core/services/api.ts`)
- Backend endpoints → Projects API: dispatches requests
- Backend endpoints → Crew API: dispatches requests
- Backend endpoints → Dashboard API: dispatches requests
- Backend endpoints → Locations and props API: dispatches requests
- Backend endpoints → Casting API: dispatches requests
- Backend endpoints → Planner API: dispatches requests
- Backend endpoints → Script API: dispatches requests
- Backend endpoints → User API: dispatches requests
- Projects API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/ProjectsController.cs`)
- Crew API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/CrewController.cs`)
- Dashboard API → EF Core context: queries data (evidence: `CineCoreBack/CineCoreBack/Controllers/DashboardController.cs`)
- Locations and props API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/LocationsController.cs`)
- Casting API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/CastingController.cs`)
- Planner API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/PlannerController.cs`)
- Script API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/ScriptController.cs`)
- User API → EF Core context: queries and saves (evidence: `CineCoreBack/CineCoreBack/Controllers/UsersController.cs`)
- EF Core context → Relational database: maps and persists (evidence: `CineCoreBack/CineCoreBack/Models/DbConfig.cs`)
- Crew API → Projects and membership: uses membership (evidence: `CineCoreBack/CineCoreBack/Controllers/CrewController.cs`)
- Dashboard API → Shoot day schedule: reads shoot days (evidence: `CineCoreBack/CineCoreBack/Controllers/DashboardController.cs`)
- Locations and props API → Locations and resources: manages locations (evidence: `CineCoreBack/CineCoreBack/Controllers/LocationsController.cs`)
- Casting API → Roles and casting: manages casting (evidence: `CineCoreBack/CineCoreBack/Controllers/CastingController.cs`)
- Planner API → Shoot day schedule: plans shoot days (evidence: `CineCoreBack/CineCoreBack/Controllers/PlannerController.cs`)
- Planner API → Scenes and script: reads scene data (evidence: `CineCoreBack/CineCoreBack/Controllers/PlannerController.cs`)
- Planner API → Locations and resources: reads resource data (evidence: `CineCoreBack/CineCoreBack/Controllers/PlannerController.cs`)
- Script API → Scenes and script: edits scenes (evidence: `CineCoreBack/CineCoreBack/Controllers/ScriptController.cs`)
- Script API → Roles and casting: updates roles (evidence: `CineCoreBack/CineCoreBack/Controllers/ScriptController.cs`)
- Script API → Locations and resources: links resources (evidence: `CineCoreBack/CineCoreBack/Controllers/ScriptController.cs`)
