# saac7/taskflow-go-react architecture

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

- Interactive diagram: https://gitdiagram.com/saac7/taskflow-go-react
- Repository: https://github.com/saac7/taskflow-go-react

## Overview

TaskFlow Web is documented as a task-management app with a React frontend and Go REST API. The backend source shown implements GET and POST task handling with in-memory state. However, the sampled frontend App.tsx is still the Vite starter screen, not the documented task dashboard, and the backend shown has no DELETE handler. The dashboard/API relationship below reflects the README; other edges are grounded in sampled code. The README’s delete capability is therefore not represented as implemented behavior.

Main entry points: [`backend/main.go`](https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go) (Task route), [`frontend/src`](https://github.com/saac7/taskflow-go-react/tree/main/frontend/src) (Task dashboard), [`frontend/src/main.tsx`](https://github.com/saac7/taskflow-go-react/blob/main/frontend/src/main.tsx) (React entry), [`frontend/src/App.tsx`](https://github.com/saac7/taskflow-go-react/blob/main/frontend/src/App.tsx) (Starter App)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_dashboard["Task dashboard"]
  node_react_entry["React entry<br/>[main.tsx]"]
  node_starter_app["Starter App<br/>[App.tsx]"]
end

subgraph group_server["Go API"]
  node_api_router["Task route<br/>[main.go]"]
  node_get_handler["GET handler<br/>[main.go]"]
  node_post_handler["POST handler<br/>[main.go]"]
  node_task_state["In-memory tasks<br/>[main.go]"]
end

node_user(("User"))

node_user -->|"uses"| node_dashboard
node_dashboard -->|"requests tasks"| node_api_router
node_react_entry -->|"renders"| node_starter_app
node_api_router -->|"dispatches GET"| node_get_handler
node_api_router -->|"dispatches POST"| node_post_handler
node_get_handler -->|"encodes"| node_task_state
node_post_handler -->|"appends task"| node_task_state

click node_dashboard "https://github.com/saac7/taskflow-go-react/tree/main/frontend/src"
click node_react_entry "https://github.com/saac7/taskflow-go-react/blob/main/frontend/src/main.tsx"
click node_starter_app "https://github.com/saac7/taskflow-go-react/blob/main/frontend/src/App.tsx"
click node_api_router "https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go"
click node_get_handler "https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go"
click node_post_handler "https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go"
click node_task_state "https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go"

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_dashboard,node_react_entry,node_starter_app,node_user toneBlue
class node_api_router,node_get_handler,node_post_handler,node_task_state toneAmber
```

## Components

### Web client

- [Task dashboard](https://github.com/saac7/taskflow-go-react/tree/main/frontend/src): `frontend/src`
- [React entry](https://github.com/saac7/taskflow-go-react/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Starter App](https://github.com/saac7/taskflow-go-react/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### Go API

- [Task route](https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go): `backend/main.go`
- [GET handler](https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go): `backend/main.go`
- [POST handler](https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go): `backend/main.go`
- [In-memory tasks](https://github.com/saac7/taskflow-go-react/blob/main/backend/main.go): `backend/main.go`

### Other components

- **User**

## Connections

- User → Task dashboard: uses (evidence: `README.md`)
- Task dashboard → Task route: requests tasks (evidence: `README.md`)
- React entry → Starter App: renders (evidence: `frontend/src/main.tsx`)
- Task route → GET handler: dispatches GET (evidence: `backend/main.go`)
- Task route → POST handler: dispatches POST (evidence: `backend/main.go`)
- GET handler → In-memory tasks: encodes (evidence: `backend/main.go`)
- POST handler → In-memory tasks: appends task (evidence: `backend/main.go`)
