# subasrisakthivel/taskflow architecture

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

## Overview

TaskFlow is a React task-management application backed by an Express REST API and MongoDB. Users enter through the landing/login experience, then create or edit tasks, manage completion and deletion, and review searchable, filterable dashboard statistics and a summary. The source excerpts show frontend task requests and backend task persistence, plus JWT-based registration and login routes; they do not show frontend authentication requests or token enforcement on task routes, so those links are omitted. The Summary capability is documented and routed, but its calculations and rendering are not connected to unsampled internals here.

Main entry points: [`src/App.jsx`](https://github.com/subasrisakthivel/taskflow/blob/master/src/App.jsx) (Application routing and state), [`backend/index.js`](https://github.com/subasrisakthivel/taskflow/blob/master/backend/index.js) (Express server), [`src/pages/Dashboard.jsx`](https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Dashboard.jsx) (Dashboard), [`src/main.jsx`](https://github.com/subasrisakthivel/taskflow/blob/master/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_entry["React entry<br/>[main.jsx]"]
  node_routing["Application routing and state<br/>[App.jsx]"]
  node_nav["Navigation<br/>[Navbar.jsx]"]
  node_landing["Landing page<br/>[Landing.jsx]"]
  node_login["Login page<br/>[Login.jsx]"]
  node_task_form["Task editor<br/>[AddTask.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_task_list["Task list<br/>[TaskList.jsx]"]
  node_task_card["Task actions<br/>[TaskCard.jsx]"]
  node_dashboard_card["Statistics cards<br/>[DashboardCard.jsx]"]
  node_summary["Summary page<br/>[Summary.jsx]"]
  node_footer["Page footer<br/>[Footer.jsx]"]
end

subgraph group_task_api["Task API"]
  node_api_server["Express server<br/>[index.js]"]
  node_task_routes["Task CRUD routes<br/>[taskRoutes.js]"]
end

subgraph group_identity["Authentication"]
  node_auth_routes["Authentication routes<br/>[authRoutes.js]"]
end

subgraph group_persistence["Persistence"]
  node_task_model["Task model<br/>[Task.js]"]
  node_user_model["User model<br/>[User.js]"]
  node_mongo[("MongoDB")]
end

node_visitor(("TaskFlow user"))

node_visitor -->|"opens app"| node_entry
node_entry -->|"renders"| node_routing
node_routing -->|"renders"| node_nav
node_routing -->|"routes to"| node_landing
node_routing -->|"routes to"| node_login
node_routing -->|"routes to"| node_dashboard
node_routing -->|"routes to"| node_task_form
node_routing -->|"routes to"| node_summary
node_routing -->|"renders"| node_footer
node_routing -->|"fetches tasks"| node_api_server
node_task_form -->|"creates or updates"| node_api_server
node_routing -->|"updates or deletes"| node_api_server
node_dashboard -->|"renders"| node_task_list
node_dashboard -->|"renders"| node_dashboard_card
node_task_list -->|"renders"| node_task_card
node_api_server -->|"mounts routes"| node_task_routes
node_api_server -->|"mounts routes"| node_auth_routes
node_task_routes -->|"queries"| node_task_model
node_auth_routes -->|"queries"| node_user_model
node_api_server -->|"connects"| node_mongo

click node_entry "https://github.com/subasrisakthivel/taskflow/blob/master/src/main.jsx"
click node_routing "https://github.com/subasrisakthivel/taskflow/blob/master/src/App.jsx"
click node_nav "https://github.com/subasrisakthivel/taskflow/blob/master/src/components/Navbar.jsx"
click node_landing "https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Landing.jsx"
click node_login "https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Login.jsx"
click node_task_form "https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/AddTask.jsx"
click node_dashboard "https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Dashboard.jsx"
click node_task_list "https://github.com/subasrisakthivel/taskflow/blob/master/src/components/TaskList.jsx"
click node_task_card "https://github.com/subasrisakthivel/taskflow/blob/master/src/components/TaskCard.jsx"
click node_dashboard_card "https://github.com/subasrisakthivel/taskflow/blob/master/src/components/DashboardCard.jsx"
click node_summary "https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Summary.jsx"
click node_footer "https://github.com/subasrisakthivel/taskflow/blob/master/src/components/Footer.jsx"
click node_api_server "https://github.com/subasrisakthivel/taskflow/blob/master/backend/index.js"
click node_task_routes "https://github.com/subasrisakthivel/taskflow/blob/master/backend/routes/taskRoutes.js"
click node_auth_routes "https://github.com/subasrisakthivel/taskflow/blob/master/backend/routes/authRoutes.js"
click node_task_model "https://github.com/subasrisakthivel/taskflow/blob/master/backend/models/Task.js"
click node_user_model "https://github.com/subasrisakthivel/taskflow/blob/master/backend/models/User.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_entry,node_routing,node_nav,node_landing,node_login,node_task_form,node_dashboard,node_task_list,node_task_card,node_dashboard_card,node_summary,node_footer toneBlue
class node_api_server,node_task_routes toneAmber
class node_auth_routes toneMint
class node_task_model,node_user_model,node_mongo,node_visitor toneRose
```

## Components

### Web application

- [React entry](https://github.com/subasrisakthivel/taskflow/blob/master/src/main.jsx): `src/main.jsx`
- [Application routing and state](https://github.com/subasrisakthivel/taskflow/blob/master/src/App.jsx): `src/App.jsx`
- [Navigation](https://github.com/subasrisakthivel/taskflow/blob/master/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Landing page](https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Landing.jsx): `src/pages/Landing.jsx`
- [Login page](https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Task editor](https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/AddTask.jsx): `src/pages/AddTask.jsx`
- [Dashboard](https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Task list](https://github.com/subasrisakthivel/taskflow/blob/master/src/components/TaskList.jsx): `src/components/TaskList.jsx`
- [Task actions](https://github.com/subasrisakthivel/taskflow/blob/master/src/components/TaskCard.jsx): `src/components/TaskCard.jsx`
- [Statistics cards](https://github.com/subasrisakthivel/taskflow/blob/master/src/components/DashboardCard.jsx): `src/components/DashboardCard.jsx`
- [Summary page](https://github.com/subasrisakthivel/taskflow/blob/master/src/pages/Summary.jsx): `src/pages/Summary.jsx`
- [Page footer](https://github.com/subasrisakthivel/taskflow/blob/master/src/components/Footer.jsx): `src/components/Footer.jsx`

### Task API

- [Express server](https://github.com/subasrisakthivel/taskflow/blob/master/backend/index.js): `backend/index.js`
- [Task CRUD routes](https://github.com/subasrisakthivel/taskflow/blob/master/backend/routes/taskRoutes.js): `backend/routes/taskRoutes.js`

### Authentication

- [Authentication routes](https://github.com/subasrisakthivel/taskflow/blob/master/backend/routes/authRoutes.js): `backend/routes/authRoutes.js`

### Persistence

- [Task model](https://github.com/subasrisakthivel/taskflow/blob/master/backend/models/Task.js): `backend/models/Task.js`
- [User model](https://github.com/subasrisakthivel/taskflow/blob/master/backend/models/User.js): `backend/models/User.js`
- **MongoDB**

### Other components

- **TaskFlow user**

## Connections

- TaskFlow user → React entry: opens app (evidence: `src/main.jsx`)
- React entry → Application routing and state: renders (evidence: `src/main.jsx`)
- Application routing and state → Navigation: renders (evidence: `src/App.jsx`)
- Application routing and state → Landing page: routes to (evidence: `src/App.jsx`)
- Application routing and state → Login page: routes to (evidence: `src/App.jsx`)
- Application routing and state → Dashboard: routes to (evidence: `src/App.jsx`)
- Application routing and state → Task editor: routes to (evidence: `src/App.jsx`)
- Application routing and state → Summary page: routes to (evidence: `src/App.jsx`)
- Application routing and state → Page footer: renders (evidence: `src/App.jsx`)
- Application routing and state → Express server: fetches tasks (evidence: `src/App.jsx`)
- Task editor → Express server: creates or updates (evidence: `src/pages/AddTask.jsx`)
- Application routing and state → Express server: updates or deletes (evidence: `src/App.jsx`)
- Dashboard → Task list: renders (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Statistics cards: renders (evidence: `src/pages/Dashboard.jsx`)
- Task list → Task actions: renders (evidence: `src/components/TaskList.jsx`)
- Express server → Task CRUD routes: mounts routes (evidence: `backend/index.js`)
- Express server → Authentication routes: mounts routes (evidence: `backend/index.js`)
- Task CRUD routes → Task model: queries (evidence: `backend/routes/taskRoutes.js`)
- Authentication routes → User model: queries (evidence: `backend/routes/authRoutes.js`)
- Express server → MongoDB: connects (evidence: `backend/index.js`)
