# eeebbaandersson/highlights-project architecture

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

- Interactive diagram: https://gitdiagram.com/eeebbaandersson/highlights-project
- Repository: https://github.com/eeebbaandersson/highlights-project

## Overview

The Highlights Project is a personal milestone timeline: a user browses and filters highlights by year and category, then creates, views, edits, or deletes entries. The Vue client calls a Symfony JSON API; its service validates and manages highlight/category entities through Doctrine repositories and persistence. The README provides no additional capability description. Frontend-to-backend HTTP wiring is inferred from the client service and API routes, but the API transport implementation was not excerpted, so that link is marked unverified.

Main entry points: [`frontend/src/views/TimelineView.vue`](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/views/TimelineView.vue) (Timeline view), [`src/Service/HighlightService.php`](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Service/HighlightService.php) (Highlight domain service), [`frontend/src/service/highlightService.js`](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/service/highlightService.js) (Highlight client service), [`frontend/router/index.js`](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/router/index.js) (View router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Timeline client"]
  node_app["Vue app shell<br/>[App.vue]"]
  node_router["View router<br/>[index.js]"]
  node_home["Home view<br/>[HomeView.vue]"]
  node_timeline["Timeline view<br/>[TimelineView.vue]"]
  node_filter["Category filter<br/>[CategoryFilter.vue]"]
  node_icon["Category icon<br/>[CategoryIcon.vue]"]
  node_create_modal["Create highlight modal"]
  node_detail_modal["Highlight detail modal"]
  node_highlight_client["Highlight client service"]
  node_api_client["API transport<br/>[api.js]"]
end

subgraph group_api["API and domain"]
  node_controller["Highlight API"]
  node_service["Highlight domain service"]
end

subgraph group_storage["Persistence model"]
  node_highlight_repo["Highlight repository"]
  node_category_repo["Category repository"]
  node_highlight["Highlight entity<br/>[Highlight.php]"]
  node_category["Category entity<br/>[Category.php]"]
  node_database[("Relational database")]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"shows routes"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_timeline
node_timeline -->|"renders"| node_filter
node_timeline -->|"renders"| node_icon
node_timeline -->|"opens"| node_create_modal
node_timeline -->|"opens"| node_detail_modal
node_timeline -->|"requests highlights"| node_highlight_client
node_create_modal -->|"creates highlights"| node_highlight_client
node_detail_modal -->|"updates highlights"| node_highlight_client
node_create_modal -->|"renders"| node_icon
node_detail_modal -->|"renders"| node_icon
node_highlight_client -->|"calls"| node_api_client
node_api_client -.->|"sends API requests"| node_controller
node_controller -->|"delegates"| node_service
node_service -->|"queries highlights"| node_highlight_repo
node_service -->|"looks up categories"| node_category_repo
node_highlight_repo -->|"manages entity"| node_highlight
node_category_repo -->|"manages entity"| node_category
node_service -->|"creates and validates"| node_highlight
node_highlight -->|"references category"| node_category
node_service -->|"persists changes"| node_database

click node_app "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/App.vue"
click node_router "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/router/index.js"
click node_home "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/views/HomeView.vue"
click node_timeline "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/views/TimelineView.vue"
click node_filter "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/CategoryFilter.vue"
click node_icon "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/CategoryIcon.vue"
click node_create_modal "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/CreateHighlightModal.vue"
click node_detail_modal "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/HighlightDetailModal.vue"
click node_highlight_client "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/service/highlightService.js"
click node_api_client "https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/service/api.js"
click node_controller "https://github.com/eeebbaandersson/highlights-project/blob/main/src/Controller/HighlightController.php"
click node_service "https://github.com/eeebbaandersson/highlights-project/blob/main/src/Service/HighlightService.php"
click node_highlight_repo "https://github.com/eeebbaandersson/highlights-project/blob/main/src/Repository/HighlightRepository.php"
click node_category_repo "https://github.com/eeebbaandersson/highlights-project/blob/main/src/Repository/CategoryRepository.php"
click node_highlight "https://github.com/eeebbaandersson/highlights-project/blob/main/src/Entity/Highlight.php"
click node_category "https://github.com/eeebbaandersson/highlights-project/blob/main/src/Entity/Category.php"

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_router,node_home,node_timeline,node_filter,node_icon,node_create_modal,node_detail_modal,node_highlight_client,node_api_client,node_user toneBlue
class node_controller,node_service toneAmber
class node_highlight_repo,node_category_repo,node_highlight,node_category,node_database toneMint
```

## Components

### Timeline client

- [Vue app shell](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/App.vue): `frontend/src/App.vue`
- [View router](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/router/index.js): `frontend/router/index.js`
- [Home view](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/views/HomeView.vue): `frontend/src/views/HomeView.vue`
- [Timeline view](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/views/TimelineView.vue): `frontend/src/views/TimelineView.vue`
- [Category filter](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/CategoryFilter.vue): `frontend/src/components/CategoryFilter.vue`
- [Category icon](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/CategoryIcon.vue): `frontend/src/components/CategoryIcon.vue`
- [Create highlight modal](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/CreateHighlightModal.vue): `frontend/src/components/CreateHighlightModal.vue`
- [Highlight detail modal](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/components/HighlightDetailModal.vue): `frontend/src/components/HighlightDetailModal.vue`
- [Highlight client service](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/service/highlightService.js): `frontend/src/service/highlightService.js`
- [API transport](https://github.com/eeebbaandersson/highlights-project/blob/main/frontend/src/service/api.js): `frontend/src/service/api.js`

### API and domain

- [Highlight API](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Controller/HighlightController.php): `src/Controller/HighlightController.php`
- [Highlight domain service](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Service/HighlightService.php): `src/Service/HighlightService.php`

### Persistence model

- [Highlight repository](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Repository/HighlightRepository.php): `src/Repository/HighlightRepository.php`
- [Category repository](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Repository/CategoryRepository.php): `src/Repository/CategoryRepository.php`
- [Highlight entity](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Entity/Highlight.php): `src/Entity/Highlight.php`
- [Category entity](https://github.com/eeebbaandersson/highlights-project/blob/main/src/Entity/Category.php): `src/Entity/Category.php`
- **Relational database**

### Other components

- **User**

## Connections

- User → Vue app shell: uses
- Vue app shell → View router: shows routes (evidence: `frontend/src/main.js`)
- View router → Home view: routes to (evidence: `frontend/router/index.js`)
- View router → Timeline view: routes to (evidence: `frontend/router/index.js`)
- Timeline view → Category filter: renders (evidence: `frontend/src/views/TimelineView.vue`)
- Timeline view → Category icon: renders (evidence: `frontend/src/views/TimelineView.vue`)
- Timeline view → Create highlight modal: opens (evidence: `frontend/src/views/TimelineView.vue`)
- Timeline view → Highlight detail modal: opens (evidence: `frontend/src/views/TimelineView.vue`)
- Timeline view → Highlight client service: requests highlights (evidence: `frontend/src/views/TimelineView.vue`)
- Create highlight modal → Highlight client service: creates highlights (evidence: `frontend/src/components/CreateHighlightModal.vue`)
- Highlight detail modal → Highlight client service: updates highlights (evidence: `frontend/src/components/HighlightDetailModal.vue`)
- Create highlight modal → Category icon: renders (evidence: `frontend/src/components/CreateHighlightModal.vue`)
- Highlight detail modal → Category icon: renders (evidence: `frontend/src/components/HighlightDetailModal.vue`)
- Highlight client service → API transport: calls (evidence: `frontend/src/service/highlightService.js`)
- API transport → Highlight API: sends API requests
- Highlight API → Highlight domain service: delegates (evidence: `src/Controller/HighlightController.php`)
- Highlight domain service → Highlight repository: queries highlights (evidence: `src/Service/HighlightService.php`)
- Highlight domain service → Category repository: looks up categories (evidence: `src/Service/HighlightService.php`)
- Highlight repository → Highlight entity: manages entity (evidence: `src/Repository/HighlightRepository.php`)
- Category repository → Category entity: manages entity (evidence: `src/Repository/CategoryRepository.php`)
- Highlight domain service → Highlight entity: creates and validates (evidence: `src/Service/HighlightService.php`)
- Highlight entity → Category entity: references category (evidence: `src/Entity/Highlight.php`)
- Highlight domain service → Relational database: persists changes (evidence: `src/Service/HighlightService.php`)
