# sarthakdasari/codealpha_taskflow architecture

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

- Interactive diagram: https://gitdiagram.com/sarthakdasari/codealpha_taskflow
- Repository: https://github.com/sarthakdasari/codealpha_taskflow

## Overview

TaskFlow is a collaborative project-management web app. A member signs in, chooses or creates a project, manages assigned tasks on a Kanban board, and discusses tasks; the server persists changes and broadcasts selected updates to connected project members. The README also documents team invitations, filters, comments, and notifications. The server and database excerpts establish their storage and authentication responsibilities; unsampled route and client details limit some relationship claims.

Main entry points: [`public/app.js`](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/public/app.js) (Client state and interactions), [`project_management.db`](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/project_management.db) (SQLite data store), [`server.js`](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js) (Projects and membership), [`public/index.html`](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/public/index.html) (TaskFlow interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_browser["TaskFlow interface<br/>[index.html]"]
  node_client_app["Client state and interactions<br/>[app.js]"]
end

subgraph group_server["Application server"]
  node_auth["Authentication<br/>[server.js]"]
  node_projects["Projects and membership<br/>[server.js]"]
  node_tasks["Task management<br/>[server.js]"]
  node_discussions["Task comments<br/>[server.js]"]
  node_notifications["Notifications<br/>[server.js]"]
end

subgraph group_data["Persistent data"]
  node_sqlite[("SQLite data store")]
  node_schema["Schema and demo seed<br/>[database.js]"]
end

subgraph group_realtime["Live collaboration"]
  node_socket["Socket.io events<br/>[server.js]"]
end

node_member(("Project member"))

node_member -->|"uses"| node_browser
node_browser -->|"loads"| node_client_app
node_client_app -->|"requests auth"| node_auth
node_client_app -->|"requests projects"| node_projects
node_client_app -.->|"manages tasks"| node_tasks
node_client_app -.->|"requests comments"| node_discussions
node_client_app -->|"loads alerts"| node_notifications
node_client_app -->|"receives events"| node_socket
node_auth -->|"reads and writes"| node_sqlite
node_projects -->|"reads and writes"| node_sqlite
node_tasks -->|"reads and writes"| node_sqlite
node_discussions -.->|"stores comments"| node_sqlite
node_notifications -->|"reads and writes"| node_sqlite
node_schema -->|"initializes"| node_sqlite
node_tasks -->|"broadcasts updates"| node_socket
node_socket -->|"delivers updates"| node_client_app
node_projects -->|"creates invite alert"| node_notifications

click node_browser "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/public/index.html"
click node_client_app "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/public/app.js"
click node_auth "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js"
click node_projects "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js"
click node_tasks "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js"
click node_discussions "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js"
click node_notifications "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js"
click node_sqlite "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/project_management.db"
click node_schema "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/database.js"
click node_socket "https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.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_browser,node_client_app toneBlue
class node_auth,node_projects,node_tasks,node_discussions,node_notifications toneAmber
class node_sqlite,node_schema toneMint
class node_socket toneRose
class node_member toneIndigo
```

## Components

### Web client

- [TaskFlow interface](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/public/index.html): `public/index.html`
- [Client state and interactions](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/public/app.js): `public/app.js`

### Application server

- [Authentication](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js): `server.js`
- [Projects and membership](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js): `server.js`
- [Task management](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js): `server.js`
- [Task comments](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js): `server.js`
- [Notifications](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js): `server.js`

### Persistent data

- [SQLite data store](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/project_management.db): `project_management.db`
- [Schema and demo seed](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/database.js): `database.js`

### Live collaboration

- [Socket.io events](https://github.com/sarthakdasari/codealpha_taskflow/blob/main/server.js): `server.js`

### Other components

- **Project member**

## Connections

- Project member → TaskFlow interface: uses (evidence: `README.md`)
- TaskFlow interface → Client state and interactions: loads
- Client state and interactions → Authentication: requests auth (evidence: `public/app.js`)
- Client state and interactions → Projects and membership: requests projects (evidence: `public/app.js`)
- Client state and interactions → Task management: manages tasks
- Client state and interactions → Task comments: requests comments
- Client state and interactions → Notifications: loads alerts (evidence: `public/app.js`)
- Client state and interactions → Socket.io events: receives events (evidence: `public/app.js`)
- Authentication → SQLite data store: reads and writes (evidence: `server.js`)
- Projects and membership → SQLite data store: reads and writes (evidence: `server.js`)
- Task management → SQLite data store: reads and writes (evidence: `server.js`)
- Task comments → SQLite data store: stores comments
- Notifications → SQLite data store: reads and writes (evidence: `server.js`)
- Schema and demo seed → SQLite data store: initializes (evidence: `database.js`)
- Task management → Socket.io events: broadcasts updates (evidence: `server.js`)
- Socket.io events → Client state and interactions: delivers updates (evidence: `public/app.js`)
- Projects and membership → Notifications: creates invite alert (evidence: `server.js`)
