# gorkemdagli/task-app architecture

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

- Interactive diagram: https://gitdiagram.com/gorkemdagli/task-app
- Repository: https://github.com/gorkemdagli/task-app

## Overview

TaskFlow is a multi-tenant team task-management product. Users authenticate, work from team task boards and task details, and use comments, notifications, and company-level progress views; administrators also manage teams, invitations, and company settings. The graph follows the sampled application entry points and task flow. Other documented capabilities are retained, but some frontend-to-API and unsampled feature links are shown only as documented or unverified relationships.

Main entry points: [`frontend/src/pages/Tasks/index.tsx`](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Tasks/index.tsx) (Task boards and detail), [`backend/src/routes/tasks.ts`](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/routes/tasks.ts) (Task endpoints), [`frontend/src/App.tsx`](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/App.tsx) (Application routes), [`backend/src/services/tasks.service.ts`](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/tasks.service.ts) (Task rules and operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_web["Application routes<br/>[App.tsx]"]
  node_taskui["Task boards and detail<br/>[index.tsx]"]
  node_taskcomponents["Task interactions<br/>[TaskCard.tsx]"]
  node_commentui["Task comments<br/>[CommentList.tsx]"]
  node_notifyui["Notifications UI<br/>[index.tsx]"]
  node_companyui["Company dashboard"]
  node_teamui["Team management<br/>[TeamsPage.tsx]"]
  node_authstate["Authentication state<br/>[authStore.ts]"]
  node_localization["Interface translations<br/>[tasks.ts]"]
end

subgraph group_api["API and access"]
  node_apiapp["Express API<br/>[app.ts]"]
  node_taskroutes["Task endpoints<br/>[tasks.ts]"]
  node_authroutes["Authentication endpoints<br/>[auth.ts]"]
  node_tenantcontext["Tenant request context"]
  node_authservice["Authentication service<br/>[auth.service.ts]"]
end

subgraph group_work["Task work"]
  node_taskservice["Task rules and operations<br/>[tasks.service.ts]"]
  node_taskevents["Task history"]
  node_comments["Comment service"]
  node_taskfiles["Task file service"]
  node_archive["Task archiving<br/>[tasks.archive.ts]"]
end

subgraph group_org["Company and teams"]
  node_orgservices["Company and team services"]
  node_invitations["Company invitations"]
end

subgraph group_platform["State and integrations"]
  node_notifications["Notification service"]
  node_postgres[("PostgreSQL")]
  node_redis[("Redis sessions<br/>[sessionStore.ts]")]
  node_media["Media storage adapter<br/>[mediaStorage.ts]"]
end

node_user(("User"))
node_supabase[("Supabase Storage")]

node_user -->|"uses"| node_web
node_web -->|"routes to"| node_taskui
node_web -->|"bootstraps"| node_authstate
node_web -.->|"uses REST API"| node_apiapp
node_taskui -.->|"presents tasks"| node_taskcomponents
node_taskui -.->|"shows task context"| node_commentui
node_user -->|"manages tasks"| node_taskui
node_user -->|"checks alerts"| node_notifyui
node_user -->|"reviews progress"| node_companyui
node_user -->|"manages teams"| node_teamui
node_apiapp -->|"mounts routes"| node_taskroutes
node_taskroutes -->|"runs requests"| node_tenantcontext
node_taskroutes -->|"calls"| node_taskservice
node_taskroutes -->|"calls history"| node_taskevents
node_taskservice -->|"appends events"| node_taskevents
node_taskservice -->|"notifies assignees"| node_notifications
node_tenantcontext -.->|"scopes database work"| node_postgres
node_taskservice -.->|"reads and writes"| node_postgres
node_authroutes -.->|"handles authentication"| node_authservice
node_authservice -.->|"reads and writes"| node_postgres
node_authservice -->|"manages sessions"| node_redis
node_taskui -.->|"requests task data"| node_taskroutes
node_commentui -.->|"uses comment API"| node_comments
node_notifyui -.->|"uses notifications"| node_notifications
node_companyui -.->|"uses company summary"| node_orgservices
node_teamui -.->|"manages teams"| node_orgservices
node_orgservices -.->|"reads organization data"| node_postgres
node_invitations -.->|"persists invitations"| node_postgres
node_taskfiles -.->|"stores task files"| node_supabase
node_media -->|"uploads media"| node_supabase
node_archive -.->|"archives tasks"| node_postgres

click node_web "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/App.tsx"
click node_taskui "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Tasks/index.tsx"
click node_taskcomponents "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/components/tasks/TaskCard.tsx"
click node_commentui "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/components/comments/CommentList.tsx"
click node_notifyui "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Notifications/index.tsx"
click node_companyui "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Company/CompanyDashboard.tsx"
click node_teamui "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Teams/TeamsPage.tsx"
click node_authstate "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/stores/authStore.ts"
click node_localization "https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/i18n/tasks.ts"
click node_apiapp "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/app.ts"
click node_taskroutes "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/routes/tasks.ts"
click node_authroutes "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/routes/auth.ts"
click node_tenantcontext "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/http/runTenantRequest.ts"
click node_authservice "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/auth.service.ts"
click node_taskservice "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/tasks.service.ts"
click node_taskevents "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/task-events.service.ts"
click node_comments "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/comments.service.ts"
click node_taskfiles "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/task-files.service.ts"
click node_archive "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/tasks.archive.ts"
click node_orgservices "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/company-dashboard.service.ts"
click node_invitations "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/company-invitations.service.ts"
click node_notifications "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/notifications.service.ts"
click node_redis "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/lib/sessionStore.ts"
click node_media "https://github.com/gorkemdagli/task-app/blob/Master/backend/src/lib/mediaStorage.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_web,node_taskui,node_taskcomponents,node_commentui,node_notifyui,node_companyui,node_teamui,node_authstate,node_localization,node_user toneBlue
class node_apiapp,node_taskroutes,node_authroutes,node_tenantcontext,node_authservice,node_supabase toneAmber
class node_taskservice,node_taskevents,node_comments,node_taskfiles,node_archive toneMint
class node_orgservices,node_invitations toneRose
class node_notifications,node_postgres,node_redis,node_media toneIndigo
```

## Components

### Web application

- [Application routes](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Task boards and detail](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Tasks/index.tsx): `frontend/src/pages/Tasks/index.tsx`
- [Task interactions](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/components/tasks/TaskCard.tsx): `frontend/src/components/tasks/TaskCard.tsx`
- [Task comments](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/components/comments/CommentList.tsx): `frontend/src/components/comments/CommentList.tsx`
- [Notifications UI](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Notifications/index.tsx): `frontend/src/pages/Notifications/index.tsx`
- [Company dashboard](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Company/CompanyDashboard.tsx): `frontend/src/pages/Company/CompanyDashboard.tsx`
- [Team management](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/pages/Teams/TeamsPage.tsx): `frontend/src/pages/Teams/TeamsPage.tsx`
- [Authentication state](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/stores/authStore.ts): `frontend/src/stores/authStore.ts`
- [Interface translations](https://github.com/gorkemdagli/task-app/blob/Master/frontend/src/i18n/tasks.ts): `frontend/src/i18n/tasks.ts`

### API and access

- [Express API](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/app.ts): `backend/src/app.ts`
- [Task endpoints](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/routes/tasks.ts): `backend/src/routes/tasks.ts`
- [Authentication endpoints](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/routes/auth.ts): `backend/src/routes/auth.ts`
- [Tenant request context](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/http/runTenantRequest.ts): `backend/src/http/runTenantRequest.ts`
- [Authentication service](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/auth.service.ts): `backend/src/services/auth.service.ts`

### Task work

- [Task rules and operations](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/tasks.service.ts): `backend/src/services/tasks.service.ts`
- [Task history](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/task-events.service.ts): `backend/src/services/task-events.service.ts`
- [Comment service](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/comments.service.ts): `backend/src/services/comments.service.ts`
- [Task file service](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/task-files.service.ts): `backend/src/services/task-files.service.ts`
- [Task archiving](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/tasks.archive.ts): `backend/src/services/tasks.archive.ts`

### Company and teams

- [Company and team services](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/company-dashboard.service.ts): `backend/src/services/company-dashboard.service.ts`
- [Company invitations](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/company-invitations.service.ts): `backend/src/services/company-invitations.service.ts`

### State and integrations

- [Notification service](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/services/notifications.service.ts): `backend/src/services/notifications.service.ts`
- **PostgreSQL**
- [Redis sessions](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/lib/sessionStore.ts): `backend/src/lib/sessionStore.ts`
- [Media storage adapter](https://github.com/gorkemdagli/task-app/blob/Master/backend/src/lib/mediaStorage.ts): `backend/src/lib/mediaStorage.ts`

### Other components

- **User**
- **Supabase Storage**

## Connections

- User → Application routes: uses (evidence: `README.md`)
- Application routes → Task boards and detail: routes to (evidence: `frontend/src/App.tsx`)
- Application routes → Authentication state: bootstraps (evidence: `frontend/src/App.tsx`)
- Application routes → Express API: uses REST API (evidence: `README.md`)
- Task boards and detail → Task interactions: presents tasks
- Task boards and detail → Task comments: shows task context (evidence: `README.md`)
- User → Task boards and detail: manages tasks (evidence: `README.md`)
- User → Notifications UI: checks alerts (evidence: `README.md`)
- User → Company dashboard: reviews progress (evidence: `README.md`)
- User → Team management: manages teams (evidence: `README.md`)
- Express API → Task endpoints: mounts routes (evidence: `backend/src/app.ts`)
- Task endpoints → Tenant request context: runs requests (evidence: `backend/src/routes/tasks.ts`)
- Task endpoints → Task rules and operations: calls (evidence: `backend/src/routes/tasks.ts`)
- Task endpoints → Task history: calls history (evidence: `backend/src/routes/tasks.ts`)
- Task rules and operations → Task history: appends events (evidence: `backend/src/services/tasks.service.ts`)
- Task rules and operations → Notification service: notifies assignees (evidence: `backend/src/services/tasks.service.ts`)
- Tenant request context → PostgreSQL: scopes database work
- Task rules and operations → PostgreSQL: reads and writes
- Authentication endpoints → Authentication service: handles authentication
- Authentication service → PostgreSQL: reads and writes
- Authentication service → Redis sessions: manages sessions (evidence: `backend/src/services/auth.service.ts`)
- Task boards and detail → Task endpoints: requests task data (evidence: `README.md`)
- Task comments → Comment service: uses comment API (evidence: `README.md`)
- Notifications UI → Notification service: uses notifications (evidence: `README.md`)
- Company dashboard → Company and team services: uses company summary (evidence: `README.md`)
- Team management → Company and team services: manages teams
- Company and team services → PostgreSQL: reads organization data
- Company invitations → PostgreSQL: persists invitations
- Task file service → Supabase Storage: stores task files (evidence: `README.md`)
- Media storage adapter → Supabase Storage: uploads media (evidence: `backend/src/lib/mediaStorage.ts`)
- Task archiving → PostgreSQL: archives tasks (evidence: `README.md`)
