# sm-mayeen/kanban-real architecture

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

- Interactive diagram: https://gitdiagram.com/sm-mayeen/kanban-real
- Repository: https://github.com/sm-mayeen/kanban-real

## Overview

This is a collaborative Kanban project-management application. Users register or log in, open a dashboard, and work in a board: managing columns and tasks, collaborating through chat and activity, and using sprint, file, and export features. The client communicates with an Express API and a Socket.IO service; the server applies authentication and board access checks before handling domain operations backed by MongoDB models. The README is empty, so feature coverage comes from the source index and sampled code; some subsystem wiring is not shown and is left unconnected.

Main entry points: [`client/src/pages/BoardView.jsx`](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/BoardView.jsx) (Board workspace), [`server/src/models`](https://github.com/sm-mayeen/kanban-real/tree/main/server/src/models) (Domain models), [`client/src/App.jsx`](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/App.jsx) (App routing), [`server/src/controllers/boardController.js`](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/controllers/boardController.js) (Board operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["App routing<br/>[App.jsx]"]
  node_authui["Auth and profile<br/>[Profile.jsx]"]
  node_dashboard["Board dashboard<br/>[Dashboard.jsx]"]
  node_boardview["Board workspace<br/>[BoardView.jsx]"]
  node_boardwidgets["Board widgets<br/>[Column.jsx]"]
  node_taskdetail["Task details"]
  node_boardstore["Board state<br/>[boardStore.js]"]
  node_api_client["API client<br/>[axiosInstance.js]"]
end

subgraph group_api["HTTP API"]
  node_express["API application<br/>[app.js]"]
  node_authmw["Auth middleware<br/>[authMiddleware.js]"]
  node_boardroutes["Board routes<br/>[boardRoutes.js]"]
  node_routegroups["Other API routes"]
end

subgraph group_domain["Project domain"]
  node_boardctrl["Board operations<br/>[boardController.js]"]
  node_taskctrl["Task operations<br/>[taskController.js]"]
  node_domainctrl["Collaboration operations"]
  node_access["Board access rules<br/>[boardAccess.js]"]
end

subgraph group_realtime["Realtime collaboration"]
  node_socket_client["Socket client<br/>[socketClient.js]"]
  node_socketserver["Socket handlers<br/>[socketHandler.js]"]
end

subgraph group_persistence["Persistence"]
  node_models[("Domain models")]
end

node_user(("User"))
node_mongo[("MongoDB")]
node_email["Email delivery<br/>[sendEmail.js]"]

node_user -->|"opens"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_boardview
node_authui -->|"requests through"| node_api_client
node_dashboard -->|"requests through"| node_api_client
node_dashboard -.->|"opens board"| node_boardview
node_boardview -->|"requests through"| node_api_client
node_boardview -->|"renders"| node_boardwidgets
node_boardview -->|"renders"| node_taskdetail
node_boardview -->|"updates state"| node_boardstore
node_boardview -->|"initializes"| node_socket_client
node_api_client -.->|"sends HTTP"| node_express
node_express -->|"mounts"| node_boardroutes
node_express -->|"mounts"| node_routegroups
node_boardroutes -->|"protects routes"| node_authmw
node_boardroutes -->|"dispatches"| node_boardctrl
node_routegroups -.->|"dispatches"| node_domainctrl
node_boardctrl -->|"reads and writes"| node_models
node_taskctrl -->|"reads and writes"| node_models
node_domainctrl -.->|"reads and writes"| node_models
node_boardctrl -->|"checks ownership"| node_access
node_taskctrl -->|"checks membership"| node_access
node_authmw -->|"loads user"| node_models
node_boardctrl -->|"sends invite"| node_email
node_models -.->|"persists"| node_mongo
node_socket_client -.->|"connects"| node_socketserver
node_taskctrl -.->|"emits task events"| node_socketserver

click node_app "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/App.jsx"
click node_authui "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/Profile.jsx"
click node_dashboard "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/Dashboard.jsx"
click node_boardview "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/BoardView.jsx"
click node_boardwidgets "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/components/Column.jsx"
click node_taskdetail "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/components/TaskDetailModal.jsx"
click node_boardstore "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/store/boardStore.js"
click node_api_client "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/api/axiosInstance.js"
click node_socket_client "https://github.com/sm-mayeen/kanban-real/blob/main/client/src/socket/socketClient.js"
click node_express "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/app.js"
click node_authmw "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/middlewares/authMiddleware.js"
click node_boardroutes "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/routes/boardRoutes.js"
click node_routegroups "https://github.com/sm-mayeen/kanban-real/tree/main/server/src/routes"
click node_boardctrl "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/controllers/boardController.js"
click node_taskctrl "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/controllers/taskController.js"
click node_domainctrl "https://github.com/sm-mayeen/kanban-real/tree/main/server/src/controllers"
click node_access "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/utils/boardAccess.js"
click node_socketserver "https://github.com/sm-mayeen/kanban-real/blob/main/server/src/socket/socketHandler.js"
click node_models "https://github.com/sm-mayeen/kanban-real/tree/main/server/src/models"
click node_email "https://github.com/sm-mayeen/kanban-real/blob/main/server/sendEmail.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_authui,node_dashboard,node_boardview,node_boardwidgets,node_taskdetail,node_boardstore,node_api_client,node_user toneBlue
class node_express,node_authmw,node_boardroutes,node_routegroups,node_mongo toneAmber
class node_boardctrl,node_taskctrl,node_domainctrl,node_access toneMint
class node_socket_client,node_socketserver toneRose
class node_models toneIndigo
class node_email toneTeal
```

## Components

### Web client

- [App routing](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Auth and profile](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/Profile.jsx): `client/src/pages/Profile.jsx`
- [Board dashboard](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/Dashboard.jsx): `client/src/pages/Dashboard.jsx`
- [Board workspace](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/pages/BoardView.jsx): `client/src/pages/BoardView.jsx`
- [Board widgets](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/components/Column.jsx): `client/src/components/Column.jsx`
- [Task details](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/components/TaskDetailModal.jsx): `client/src/components/TaskDetailModal.jsx`
- [Board state](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/store/boardStore.js): `client/src/store/boardStore.js`
- [API client](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/api/axiosInstance.js): `client/src/api/axiosInstance.js`

### HTTP API

- [API application](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/app.js): `server/src/app.js`
- [Auth middleware](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/middlewares/authMiddleware.js): `server/src/middlewares/authMiddleware.js`
- [Board routes](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/routes/boardRoutes.js): `server/src/routes/boardRoutes.js`
- [Other API routes](https://github.com/sm-mayeen/kanban-real/tree/main/server/src/routes): `server/src/routes`

### Project domain

- [Board operations](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/controllers/boardController.js): `server/src/controllers/boardController.js`
- [Task operations](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/controllers/taskController.js): `server/src/controllers/taskController.js`
- [Collaboration operations](https://github.com/sm-mayeen/kanban-real/tree/main/server/src/controllers): `server/src/controllers`
- [Board access rules](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/utils/boardAccess.js): `server/src/utils/boardAccess.js`

### Realtime collaboration

- [Socket client](https://github.com/sm-mayeen/kanban-real/blob/main/client/src/socket/socketClient.js): `client/src/socket/socketClient.js`
- [Socket handlers](https://github.com/sm-mayeen/kanban-real/blob/main/server/src/socket/socketHandler.js): `server/src/socket/socketHandler.js`

### Persistence

- [Domain models](https://github.com/sm-mayeen/kanban-real/tree/main/server/src/models): `server/src/models`

### Other components

- **User**
- **MongoDB**
- [Email delivery](https://github.com/sm-mayeen/kanban-real/blob/main/server/sendEmail.js): `server/sendEmail.js`

## Connections

- User → App routing: opens (evidence: `client/src/App.jsx`)
- App routing → Auth and profile: routes to (evidence: `client/src/App.jsx`)
- App routing → Board dashboard: routes to (evidence: `client/src/App.jsx`)
- App routing → Board workspace: routes to (evidence: `client/src/App.jsx`)
- Auth and profile → API client: requests through (evidence: `client/src/pages/Profile.jsx`)
- Board dashboard → API client: requests through (evidence: `client/src/pages/Dashboard.jsx`)
- Board dashboard → Board workspace: opens board
- Board workspace → API client: requests through (evidence: `client/src/pages/BoardView.jsx`)
- Board workspace → Board widgets: renders (evidence: `client/src/pages/BoardView.jsx`)
- Board workspace → Task details: renders (evidence: `client/src/pages/BoardView.jsx`)
- Board workspace → Board state: updates state (evidence: `client/src/pages/BoardView.jsx`)
- Board workspace → Socket client: initializes (evidence: `client/src/pages/BoardView.jsx`)
- API client → API application: sends HTTP
- API application → Board routes: mounts (evidence: `server/src/app.js`)
- API application → Other API routes: mounts (evidence: `server/src/app.js`)
- Board routes → Auth middleware: protects routes (evidence: `server/src/routes/boardRoutes.js`)
- Board routes → Board operations: dispatches (evidence: `server/src/routes/boardRoutes.js`)
- Other API routes → Collaboration operations: dispatches (evidence: `server/src/routes/boardRoutes.js`)
- Board operations → Domain models: reads and writes (evidence: `server/src/controllers/boardController.js`)
- Task operations → Domain models: reads and writes (evidence: `server/src/controllers/taskController.js`)
- Collaboration operations → Domain models: reads and writes (evidence: `server/src/controllers/boardController.js`)
- Board operations → Board access rules: checks ownership (evidence: `server/src/controllers/boardController.js`)
- Task operations → Board access rules: checks membership (evidence: `server/src/controllers/taskController.js`)
- Auth middleware → Domain models: loads user (evidence: `server/src/middlewares/authMiddleware.js`)
- Board operations → Email delivery: sends invite (evidence: `server/src/controllers/boardController.js`)
- Domain models → MongoDB: persists
- Socket client → Socket handlers: connects
- Task operations → Socket handlers: emits task events
