# zyaan27/taskflow-team-task-manager architecture

> Architecture diagram of the GitHub repository zyaan27/taskflow-team-task-manager, 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/zyaan27/taskflow-team-task-manager
- Repository: https://github.com/zyaan27/taskflow-team-task-manager

## Overview

TaskFlow is a collaborative team task manager. Users sign up or log in, then use the dashboard and project views to manage project membership and work; task views provide a status-based Kanban board. The React client calls an Express API, which enforces authentication and project roles and persists users, projects, memberships, and tasks in PostgreSQL. The README documents dashboard analytics, team management, and role restrictions. Some route and page source was not sampled, so those subsystem links rely on the README or SOURCE INDEX references.

Main entry points: [`frontend/src/api/index.js`](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/api/index.js) (HTTP API client), [`frontend/src/App.jsx`](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/App.jsx) (Route application), [`backend/src/app.js`](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/app.js) (Express app), [`backend/src/config/database.js`](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/config/database.js) (PostgreSQL pool and schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_app["Route application<br/>[App.jsx]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_authpages["Login and signup<br/>[LoginPage.jsx]"]
  node_layout["Navigation layout<br/>[Layout.jsx]"]
  node_dashboardpage["Dashboard analytics<br/>[DashboardPage.jsx]"]
  node_projectspage["Project listing<br/>[ProjectsPage.jsx]"]
  node_projectdetail["Project and members"]
  node_taskspage["Kanban tasks<br/>[TasksPage.jsx]"]
  node_api["HTTP API client<br/>[index.js]"]
end

subgraph group_api["Backend API"]
  node_server["Express app<br/>[app.js]"]
  node_authroutes["Authentication routes<br/>[auth.js]"]
  node_projectroutes["Project routes<br/>[projects.js]"]
  node_taskroutes["Task routes<br/>[tasks.js]"]
  node_dashboardroutes["Dashboard route<br/>[dashboard.js]"]
end

subgraph group_security["Identity and access"]
  node_authmiddleware["JWT and role guards<br/>[auth.js]"]
end

subgraph group_persistence["Persistent data"]
  node_database[("PostgreSQL pool and schema<br/>[database.js]")]
end

node_user(("Team user"))

node_user -->|"uses"| node_app
node_app -->|"provides auth"| node_authstate
node_app -->|"routes to"| node_authpages
node_app -->|"routes through"| node_layout
node_app -->|"routes to"| node_dashboardpage
node_app -->|"routes to"| node_projectspage
node_app -->|"routes to"| node_projectdetail
node_app -->|"routes to"| node_taskspage
node_authstate -->|"verifies session"| node_api
node_authpages -->|"updates session"| node_authstate
node_layout -->|"reads session"| node_authstate
node_dashboardpage -->|"requests analytics"| node_api
node_projectspage -->|"requests projects"| node_api
node_projectdetail -->|"manages project team"| node_api
node_taskspage -->|"manages tasks"| node_api
node_api -->|"sends auth requests"| node_authroutes
node_api -->|"sends project requests"| node_projectroutes
node_api -->|"sends task requests"| node_taskroutes
node_api -->|"requests dashboard"| node_dashboardroutes
node_server -->|"mounts routes"| node_authroutes
node_server -->|"mounts routes"| node_projectroutes
node_server -->|"mounts routes"| node_taskroutes
node_server -->|"mounts routes"| node_dashboardroutes
node_authroutes -->|"authenticates"| node_authmiddleware
node_authroutes -->|"queries users"| node_database
node_authmiddleware -->|"checks users and roles"| node_database
node_projectroutes -->|"guards access"| node_authmiddleware
node_projectroutes -->|"reads and writes"| node_database
node_taskroutes -->|"guards access"| node_authmiddleware
node_taskroutes -->|"reads and writes tasks"| node_database
node_dashboardroutes -->|"guards access"| node_authmiddleware
node_dashboardroutes -->|"aggregates task data"| node_database
node_server -->|"initializes schema"| node_database

click node_app "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/App.jsx"
click node_authstate "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/context/AuthContext.jsx"
click node_authpages "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/LoginPage.jsx"
click node_layout "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/components/layout/Layout.jsx"
click node_dashboardpage "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/DashboardPage.jsx"
click node_projectspage "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/ProjectsPage.jsx"
click node_projectdetail "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/ProjectDetailPage.jsx"
click node_taskspage "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/TasksPage.jsx"
click node_api "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/api/index.js"
click node_server "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/app.js"
click node_authroutes "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/auth.js"
click node_projectroutes "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/projects.js"
click node_taskroutes "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/tasks.js"
click node_dashboardroutes "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/dashboard.js"
click node_authmiddleware "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/middleware/auth.js"
click node_database "https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/config/database.js"

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_authstate,node_authpages,node_layout,node_dashboardpage,node_projectspage,node_projectdetail,node_taskspage,node_api,node_user toneBlue
class node_server,node_authroutes,node_projectroutes,node_taskroutes,node_dashboardroutes toneAmber
class node_authmiddleware toneMint
class node_database toneRose
```

## Components

### Web application

- [Route application](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Auth state](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Login and signup](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/LoginPage.jsx): `frontend/src/pages/LoginPage.jsx`
- [Navigation layout](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/components/layout/Layout.jsx): `frontend/src/components/layout/Layout.jsx`
- [Dashboard analytics](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/DashboardPage.jsx): `frontend/src/pages/DashboardPage.jsx`
- [Project listing](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/ProjectsPage.jsx): `frontend/src/pages/ProjectsPage.jsx`
- [Project and members](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/ProjectDetailPage.jsx): `frontend/src/pages/ProjectDetailPage.jsx`
- [Kanban tasks](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/pages/TasksPage.jsx): `frontend/src/pages/TasksPage.jsx`
- [HTTP API client](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/frontend/src/api/index.js): `frontend/src/api/index.js`

### Backend API

- [Express app](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/app.js): `backend/src/app.js`
- [Authentication routes](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/auth.js): `backend/src/routes/auth.js`
- [Project routes](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/projects.js): `backend/src/routes/projects.js`
- [Task routes](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/tasks.js): `backend/src/routes/tasks.js`
- [Dashboard route](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/routes/dashboard.js): `backend/src/routes/dashboard.js`

### Identity and access

- [JWT and role guards](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/middleware/auth.js): `backend/src/middleware/auth.js`

### Persistent data

- [PostgreSQL pool and schema](https://github.com/zyaan27/taskflow-team-task-manager/blob/main/backend/src/config/database.js): `backend/src/config/database.js`

### Other components

- **Team user**

## Connections

- Team user → Route application: uses (evidence: `README.md`)
- Route application → Auth state: provides auth (evidence: `frontend/src/App.jsx`)
- Route application → Login and signup: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Navigation layout: routes through (evidence: `frontend/src/App.jsx`)
- Route application → Dashboard analytics: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Project listing: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Project and members: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Kanban tasks: routes to (evidence: `frontend/src/App.jsx`)
- Auth state → HTTP API client: verifies session (evidence: `frontend/src/context/AuthContext.jsx`)
- Login and signup → Auth state: updates session (evidence: `frontend/src/pages/LoginPage.jsx`)
- Navigation layout → Auth state: reads session (evidence: `frontend/src/components/layout/Layout.jsx`)
- Dashboard analytics → HTTP API client: requests analytics (evidence: `frontend/src/pages/DashboardPage.jsx`)
- Project listing → HTTP API client: requests projects (evidence: `frontend/src/pages/ProjectsPage.jsx`)
- Project and members → HTTP API client: manages project team (evidence: `frontend/src/pages/ProjectDetailPage.jsx`)
- Kanban tasks → HTTP API client: manages tasks (evidence: `frontend/src/pages/TasksPage.jsx`)
- HTTP API client → Authentication routes: sends auth requests (evidence: `README.md`)
- HTTP API client → Project routes: sends project requests (evidence: `README.md`)
- HTTP API client → Task routes: sends task requests (evidence: `README.md`)
- HTTP API client → Dashboard route: requests dashboard (evidence: `README.md`)
- Express app → Authentication routes: mounts routes (evidence: `backend/src/app.js`)
- Express app → Project routes: mounts routes (evidence: `backend/src/app.js`)
- Express app → Task routes: mounts routes (evidence: `backend/src/app.js`)
- Express app → Dashboard route: mounts routes (evidence: `backend/src/app.js`)
- Authentication routes → JWT and role guards: authenticates (evidence: `backend/src/routes/auth.js`)
- Authentication routes → PostgreSQL pool and schema: queries users (evidence: `backend/src/routes/auth.js`)
- JWT and role guards → PostgreSQL pool and schema: checks users and roles (evidence: `backend/src/middleware/auth.js`)
- Project routes → JWT and role guards: guards access (evidence: `backend/src/routes/projects.js`)
- Project routes → PostgreSQL pool and schema: reads and writes (evidence: `backend/src/routes/projects.js`)
- Task routes → JWT and role guards: guards access (evidence: `backend/src/routes/tasks.js`)
- Task routes → PostgreSQL pool and schema: reads and writes tasks (evidence: `backend/src/routes/tasks.js`)
- Dashboard route → JWT and role guards: guards access (evidence: `backend/src/routes/dashboard.js`)
- Dashboard route → PostgreSQL pool and schema: aggregates task data (evidence: `backend/src/routes/dashboard.js`)
- Express app → PostgreSQL pool and schema: initializes schema (evidence: `backend/src/app.js`)
