# ravikumar-9/wwassignment architecture

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

- Interactive diagram: https://gitdiagram.com/ravikumar-9/wwassignment
- Repository: https://github.com/ravikumar-9/wwassignment

## Overview

TeamBoard is a project-and-team management web app. Users authenticate, then manage projects and members, create and track tasks, collaborate through comments and activity history, and review live dashboard summaries; Admins also manage users. The client is a React SPA that calls an Express REST API, whose services enforce business rules and persist through Drizzle/PostgreSQL. Domain coverage follows the README; unsampled backend implementation links are based on its documented layer pattern, not inspected source.

Main entry points: [`server/src/app.ts`](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/app.ts) (Express app), [`server/src/db/schema.ts`](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/db/schema.ts) (PostgreSQL data), [`client/src/app/App.tsx`](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/app/App.tsx) (React app), [`server/src/modules/activity/activity.service.ts`](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/activity/activity.service.ts) (Activity history)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_webapp["React app<br/>[App.tsx]"]
  node_authui["Sign-in flows<br/>[login-page.tsx]"]
  node_projectui["Project workspace<br/>[projects-page.tsx]"]
  node_taskui["Task workspace<br/>[tasks-page.tsx]"]
  node_taskhooks["Task queries<br/>[use-tasks.ts]"]
  node_taskservice["Task API client<br/>[tasks.service.ts]"]
  node_apiclient["Request handling<br/>[handle-request.ts]"]
end

subgraph group_api["API and security"]
  node_server["Express app<br/>[app.ts]"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_guard["Auth middleware<br/>[auth.middleware.ts]"]
  node_validation["Input validation<br/>[validation.util.ts]"]
end

subgraph group_work["Project work"]
  node_projects["Project management"]
  node_tasks["Task management<br/>[tasks.service.ts]"]
  node_users["User administration<br/>[users.service.ts]"]
end

subgraph group_insights["Collaboration and insights"]
  node_comments["Task comments"]
  node_activity["Activity history"]
  node_dashboard["Dashboard summaries"]
end

subgraph group_data["Persistence"]
  node_db[("PostgreSQL data<br/>[schema.ts]")]
end

node_user(("TeamBoard user"))
node_externalapi{{"REST API"}}

node_user -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_authui
node_webapp -.->|"routes to"| node_projectui
node_webapp -->|"routes to"| node_taskui
node_taskui -->|"queries through"| node_taskhooks
node_taskhooks -->|"calls"| node_taskservice
node_taskservice -->|"sends requests"| node_apiclient
node_apiclient -->|"calls"| node_externalapi
node_externalapi -->|"serves"| node_server
node_server -->|"routes auth"| node_auth
node_server -->|"routes projects"| node_projects
node_server -->|"routes tasks"| node_tasks
node_server -->|"routes dashboard"| node_dashboard
node_server -->|"routes users"| node_users
node_server -.->|"routes comments"| node_comments
node_auth -->|"resolves token user"| node_guard
node_projects -.->|"reads and writes"| node_db
node_tasks -.->|"reads and writes"| node_db
node_users -->|"uses repository"| node_db
node_comments -.->|"reads and writes"| node_db
node_activity -.->|"reads and writes"| node_db
node_dashboard -.->|"calculates from"| node_db
node_tasks -.->|"records events"| node_activity
node_projects -.->|"records events"| node_activity
node_comments -.->|"records events"| node_activity

click node_webapp "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/app/App.tsx"
click node_authui "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/auth/pages/login-page.tsx"
click node_projectui "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/projects/pages/projects-page.tsx"
click node_taskui "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/tasks/pages/tasks-page.tsx"
click node_taskhooks "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/tasks/hooks/use-tasks.ts"
click node_taskservice "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/tasks/services/tasks.service.ts"
click node_apiclient "https://github.com/ravikumar-9/wwassignment/blob/main/client/src/api/handle-request.ts"
click node_server "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/app.ts"
click node_auth "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/auth/auth.service.ts"
click node_guard "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/middlewares/auth.middleware.ts"
click node_validation "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/utils/validation.util.ts"
click node_projects "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/projects/projects.service.ts"
click node_tasks "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/tasks/tasks.service.ts"
click node_users "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/users/users.service.ts"
click node_comments "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/comments/comments.service.ts"
click node_activity "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/activity/activity.service.ts"
click node_dashboard "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/dashboard/dashboard.service.ts"
click node_db "https://github.com/ravikumar-9/wwassignment/blob/main/server/src/db/schema.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_webapp,node_authui,node_projectui,node_taskui,node_taskhooks,node_taskservice,node_apiclient,node_user toneBlue
class node_server,node_auth,node_guard,node_validation toneAmber
class node_projects,node_tasks,node_users,node_externalapi toneMint
class node_comments,node_activity,node_dashboard toneRose
class node_db toneIndigo
```

## Components

### Web client

- [React app](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/app/App.tsx): `client/src/app/App.tsx`
- [Sign-in flows](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/auth/pages/login-page.tsx): `client/src/features/auth/pages/login-page.tsx`
- [Project workspace](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/projects/pages/projects-page.tsx): `client/src/features/projects/pages/projects-page.tsx`
- [Task workspace](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/tasks/pages/tasks-page.tsx): `client/src/features/tasks/pages/tasks-page.tsx`
- [Task queries](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/tasks/hooks/use-tasks.ts): `client/src/features/tasks/hooks/use-tasks.ts`
- [Task API client](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/features/tasks/services/tasks.service.ts): `client/src/features/tasks/services/tasks.service.ts`
- [Request handling](https://github.com/ravikumar-9/wwassignment/blob/main/client/src/api/handle-request.ts): `client/src/api/handle-request.ts`

### API and security

- [Express app](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/app.ts): `server/src/app.ts`
- [Authentication](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/auth/auth.service.ts): `server/src/modules/auth/auth.service.ts`
- [Auth middleware](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/middlewares/auth.middleware.ts): `server/src/middlewares/auth.middleware.ts`
- [Input validation](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/utils/validation.util.ts): `server/src/utils/validation.util.ts`

### Project work

- [Project management](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/projects/projects.service.ts): `server/src/modules/projects/projects.service.ts`
- [Task management](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/tasks/tasks.service.ts): `server/src/modules/tasks/tasks.service.ts`
- [User administration](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/users/users.service.ts): `server/src/modules/users/users.service.ts`

### Collaboration and insights

- [Task comments](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/comments/comments.service.ts): `server/src/modules/comments/comments.service.ts`
- [Activity history](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/activity/activity.service.ts): `server/src/modules/activity/activity.service.ts`
- [Dashboard summaries](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/modules/dashboard/dashboard.service.ts): `server/src/modules/dashboard/dashboard.service.ts`

### Persistence

- [PostgreSQL data](https://github.com/ravikumar-9/wwassignment/blob/main/server/src/db/schema.ts): `server/src/db/schema.ts`

### Other components

- **TeamBoard user**
- **REST API**

## Connections

- TeamBoard user → React app: uses (evidence: `README.md`)
- React app → Sign-in flows: routes to
- React app → Project workspace: routes to
- React app → Task workspace: routes to
- Task workspace → Task queries: queries through (evidence: `client/src/features/tasks/pages/tasks-page.tsx`)
- Task queries → Task API client: calls (evidence: `client/src/features/tasks/hooks/use-tasks.ts`)
- Task API client → Request handling: sends requests (evidence: `client/src/features/tasks/services/tasks.service.ts`)
- Request handling → REST API: calls (evidence: `README.md`)
- REST API → Express app: serves (evidence: `README.md`)
- Express app → Authentication: routes auth (evidence: `server/src/app.ts`)
- Express app → Project management: routes projects (evidence: `server/src/app.ts`)
- Express app → Task management: routes tasks (evidence: `server/src/app.ts`)
- Express app → Dashboard summaries: routes dashboard (evidence: `server/src/app.ts`)
- Express app → User administration: routes users (evidence: `server/src/app.ts`)
- Express app → Task comments: routes comments
- Authentication → Auth middleware: resolves token user (evidence: `server/src/middlewares/auth.middleware.ts`)
- Project management → PostgreSQL data: reads and writes
- Task management → PostgreSQL data: reads and writes
- User administration → PostgreSQL data: uses repository (evidence: `server/src/modules/users/users.service.ts`)
- Task comments → PostgreSQL data: reads and writes
- Activity history → PostgreSQL data: reads and writes
- Dashboard summaries → PostgreSQL data: calculates from (evidence: `README.md`)
- Task management → Activity history: records events (evidence: `README.md`)
- Project management → Activity history: records events (evidence: `README.md`)
- Task comments → Activity history: records events (evidence: `README.md`)
