# pshanthan/task-board architecture

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

- Interactive diagram: https://gitdiagram.com/pshanthan/task-board
- Repository: https://github.com/pshanthan/task-board

## Overview

TaskBoard is an Angular task-management app. A browser loads the application, which bootstraps its root component and configures routing; navigating to `/list` opens the task list. The list component loads, creates, edits, and deletes tasks through a service that sends HTTP requests to a local tasks API. `Task` defines the data shape used by the list and service. The excerpts show the API URL and calls, but do not establish how the API is implemented or whether `db.json` backs it.

Main entry points: [`src/main.ts`](https://github.com/pshanthan/task-board/blob/master/src/main.ts) (Application bootstrap), [`src/app/list/list.component.ts`](https://github.com/pshanthan/task-board/blob/master/src/app/list/list.component.ts) (Task list UI), [`src/app/task.service.ts`](https://github.com/pshanthan/task-board/blob/master/src/app/task.service.ts) (Task service), [`src/app/app.config.ts`](https://github.com/pshanthan/task-board/blob/master/src/app/app.config.ts) (App configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_bootstrap["Application bootstrap<br/>[main.ts]"]
  node_shell["Root component<br/>[app.component.ts]"]
  node_config["App configuration<br/>[app.config.ts]"]
  node_routes["Route definitions<br/>[app.routes.ts]"]
end

subgraph group_tasks["Task management"]
  node_list["Task list UI<br/>[list.component.ts]"]
end

subgraph group_data["Task data"]
  node_service["Task service<br/>[task.service.ts]"]
  node_model["Task model<br/>[Task.ts]"]
end

node_browser(("Browser user"))
node_api["Local tasks API"]

node_browser -->|"loads app"| node_bootstrap
node_bootstrap -->|"bootstraps"| node_shell
node_bootstrap -->|"provides config"| node_config
node_config -->|"provides routes"| node_routes
node_routes -->|"routes to"| node_list
node_list -->|"requests tasks"| node_service
node_list -->|"uses task shape"| node_model
node_service -->|"uses task shape"| node_model
node_service -->|"sends HTTP requests"| node_api

click node_bootstrap "https://github.com/pshanthan/task-board/blob/master/src/main.ts"
click node_shell "https://github.com/pshanthan/task-board/blob/master/src/app/app.component.ts"
click node_config "https://github.com/pshanthan/task-board/blob/master/src/app/app.config.ts"
click node_routes "https://github.com/pshanthan/task-board/blob/master/src/app/app.routes.ts"
click node_list "https://github.com/pshanthan/task-board/blob/master/src/app/list/list.component.ts"
click node_service "https://github.com/pshanthan/task-board/blob/master/src/app/task.service.ts"
click node_model "https://github.com/pshanthan/task-board/blob/master/src/app/models/Task.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_bootstrap,node_shell,node_config,node_routes,node_browser toneBlue
class node_list toneAmber
class node_service,node_model toneMint
class node_api toneRose
```

## Components

### Application shell

- [Application bootstrap](https://github.com/pshanthan/task-board/blob/master/src/main.ts): `src/main.ts`
- [Root component](https://github.com/pshanthan/task-board/blob/master/src/app/app.component.ts): `src/app/app.component.ts`
- [App configuration](https://github.com/pshanthan/task-board/blob/master/src/app/app.config.ts): `src/app/app.config.ts`
- [Route definitions](https://github.com/pshanthan/task-board/blob/master/src/app/app.routes.ts): `src/app/app.routes.ts`

### Task management

- [Task list UI](https://github.com/pshanthan/task-board/blob/master/src/app/list/list.component.ts): `src/app/list/list.component.ts`

### Task data

- [Task service](https://github.com/pshanthan/task-board/blob/master/src/app/task.service.ts): `src/app/task.service.ts`
- [Task model](https://github.com/pshanthan/task-board/blob/master/src/app/models/Task.ts): `src/app/models/Task.ts`

### Other components

- **Browser user**
- **Local tasks API**

## Connections

- Browser user → Application bootstrap: loads app (evidence: `src/main.ts`)
- Application bootstrap → Root component: bootstraps (evidence: `src/main.ts`)
- Application bootstrap → App configuration: provides config (evidence: `src/main.ts`)
- App configuration → Route definitions: provides routes (evidence: `src/app/app.config.ts`)
- Route definitions → Task list UI: routes to (evidence: `src/app/app.routes.ts`)
- Task list UI → Task service: requests tasks (evidence: `src/app/list/list.component.ts`)
- Task list UI → Task model: uses task shape (evidence: `src/app/list/list.component.ts`)
- Task service → Task model: uses task shape (evidence: `src/app/task.service.ts`)
- Task service → Local tasks API: sends HTTP requests (evidence: `src/app/task.service.ts`)
