# thatguy4u/alumiodtu architecture

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

## Overview

AlumioDTU is a full-stack DTU alumni–student networking platform. Users register and verify an identity, complete role-specific onboarding, then discover members and use mentorship, job, community, event, and messaging features; administrators verify alumni and moderate the platform. The React app routes these experiences to an Express API, with PostgreSQL-backed data and Socket.io realtime features. The README documents several product capabilities beyond the sampled implementation; those are shown at subsystem level. Some feature routes and storage interactions are unsampled, so uncertain links are omitted or marked unverified.

Main entry points: [`server/server.js`](https://github.com/thatguy4u/alumiodtu/blob/main/server/server.js) (Express API), [`src/App.jsx`](https://github.com/thatguy4u/alumiodtu/blob/main/src/App.jsx) (App routes), [`server/controllers/auth.controller.js`](https://github.com/thatguy4u/alumiodtu/blob/main/server/controllers/auth.controller.js) (Authentication API), [`src/pages/auth/LoginPage.jsx`](https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/auth/LoginPage.jsx) (Sign-in and onboarding)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_webapp["App routes<br/>[App.jsx]"]
  node_clientstate["Auth state<br/>[authSlice.js]"]
  node_apiclient["API client<br/>[apiClient.js]"]
  node_dashboard["Role dashboards"]
end

subgraph group_identity["Identity and profiles"]
  node_identityui["Sign-in and onboarding<br/>[LoginPage.jsx]"]
  node_profiles["Directory and profiles<br/>[DirectoryPage.jsx]"]
  node_authapi["Authentication API<br/>[auth.controller.js]"]
  node_userapi["Member API<br/>[users.routes.js]"]
end

subgraph group_opportunities["Career opportunities"]
  node_mentorship["Mentorship"]
  node_jobs["Jobs and applications<br/>[jobs.routes.js]"]
  node_events["Events<br/>[events.routes.js]"]
end

subgraph group_community["Community and realtime"]
  node_communityui["Forum discussions<br/>[PostDetailPage.jsx]"]
  node_communityapi["Community API"]
  node_messaging["Messaging UI<br/>[MessagesPage.jsx]"]
  node_chatapi["Chat API<br/>[chat.routes.js]"]
  node_socket["Realtime sockets<br/>[socket.js]"]
  node_notifications["Notifications"]
end

subgraph group_platform["API platform"]
  node_admin["Administration<br/>[admin.routes.js]"]
  node_api["Express API<br/>[server.js]"]
  node_authguard["Authentication guard<br/>[auth.js]"]
  node_database[("PostgreSQL data<br/>[db.js]")]
  node_email["Email delivery<br/>[email.service.js]"]
end

node_members(("Students and alumni"))
node_mailer["Email provider"]

node_members -->|"use platform"| node_webapp
node_webapp -->|"routes to"| node_identityui
node_webapp -->|"routes to"| node_dashboard
node_webapp -->|"routes to"| node_communityui
node_webapp -->|"routes to"| node_messaging
node_clientstate -->|"calls"| node_authapi
node_apiclient -->|"sends requests"| node_api
node_identityui -.->|"updates session"| node_clientstate
node_identityui -.->|"authenticates"| node_authapi
node_profiles -.->|"searches members"| node_userapi
node_api -->|"routes requests"| node_authapi
node_api -->|"routes requests"| node_userapi
node_api -->|"routes requests"| node_mentorship
node_api -->|"routes requests"| node_jobs
node_api -->|"routes requests"| node_events
node_api -->|"routes requests"| node_communityapi
node_api -->|"routes requests"| node_chatapi
node_api -->|"routes requests"| node_admin
node_api -->|"initializes"| node_socket
node_api -.->|"uses guard"| node_authguard
node_userapi -->|"updates and searches"| node_database
node_authguard -->|"loads user"| node_database
node_authapi -->|"sends account mail"| node_email
node_email -->|"sends mail"| node_mailer
node_communityui -.->|"uses forum"| node_communityapi
node_messaging -.->|"loads conversations"| node_chatapi
node_messaging -->|"exchanges messages"| node_socket
node_mentorship -->|"creates alerts"| node_notifications
node_api -.->|"serves alerts"| node_notifications

click node_webapp "https://github.com/thatguy4u/alumiodtu/blob/main/src/App.jsx"
click node_clientstate "https://github.com/thatguy4u/alumiodtu/blob/main/src/store/slices/authSlice.js"
click node_apiclient "https://github.com/thatguy4u/alumiodtu/blob/main/src/utils/apiClient.js"
click node_dashboard "https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/dashboard/StudentDashboard.jsx"
click node_identityui "https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/auth/LoginPage.jsx"
click node_profiles "https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/directory/DirectoryPage.jsx"
click node_authapi "https://github.com/thatguy4u/alumiodtu/blob/main/server/controllers/auth.controller.js"
click node_userapi "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/users.routes.js"
click node_mentorship "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/mentorship.routes.js"
click node_jobs "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/jobs.routes.js"
click node_events "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/events.routes.js"
click node_communityui "https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/community/PostDetailPage.jsx"
click node_communityapi "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/community.routes.js"
click node_messaging "https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/messages/MessagesPage.jsx"
click node_chatapi "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/chat.routes.js"
click node_socket "https://github.com/thatguy4u/alumiodtu/blob/main/server/config/socket.js"
click node_notifications "https://github.com/thatguy4u/alumiodtu/blob/main/server/services/notification.service.js"
click node_admin "https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/admin.routes.js"
click node_api "https://github.com/thatguy4u/alumiodtu/blob/main/server/server.js"
click node_authguard "https://github.com/thatguy4u/alumiodtu/blob/main/server/middleware/auth.js"
click node_database "https://github.com/thatguy4u/alumiodtu/blob/main/server/config/db.js"
click node_email "https://github.com/thatguy4u/alumiodtu/blob/main/server/services/email.service.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_webapp,node_clientstate,node_apiclient,node_dashboard toneBlue
class node_identityui,node_profiles,node_authapi,node_userapi toneAmber
class node_mentorship,node_jobs,node_events toneMint
class node_communityui,node_communityapi,node_messaging,node_chatapi,node_socket,node_notifications toneRose
class node_admin,node_api,node_authguard,node_database,node_email,node_members,node_mailer toneIndigo
```

## Components

### Web client

- [App routes](https://github.com/thatguy4u/alumiodtu/blob/main/src/App.jsx): `src/App.jsx`
- [Auth state](https://github.com/thatguy4u/alumiodtu/blob/main/src/store/slices/authSlice.js): `src/store/slices/authSlice.js`
- [API client](https://github.com/thatguy4u/alumiodtu/blob/main/src/utils/apiClient.js): `src/utils/apiClient.js`
- [Role dashboards](https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/dashboard/StudentDashboard.jsx): `src/pages/dashboard/StudentDashboard.jsx`

### Identity and profiles

- [Sign-in and onboarding](https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/auth/LoginPage.jsx): `src/pages/auth/LoginPage.jsx`
- [Directory and profiles](https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/directory/DirectoryPage.jsx): `src/pages/directory/DirectoryPage.jsx`
- [Authentication API](https://github.com/thatguy4u/alumiodtu/blob/main/server/controllers/auth.controller.js): `server/controllers/auth.controller.js`
- [Member API](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/users.routes.js): `server/routes/users.routes.js`

### Career opportunities

- [Mentorship](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/mentorship.routes.js): `server/routes/mentorship.routes.js`
- [Jobs and applications](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/jobs.routes.js): `server/routes/jobs.routes.js`
- [Events](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/events.routes.js): `server/routes/events.routes.js`

### Community and realtime

- [Forum discussions](https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/community/PostDetailPage.jsx): `src/pages/community/PostDetailPage.jsx`
- [Community API](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/community.routes.js): `server/routes/community.routes.js`
- [Messaging UI](https://github.com/thatguy4u/alumiodtu/blob/main/src/pages/messages/MessagesPage.jsx): `src/pages/messages/MessagesPage.jsx`
- [Chat API](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/chat.routes.js): `server/routes/chat.routes.js`
- [Realtime sockets](https://github.com/thatguy4u/alumiodtu/blob/main/server/config/socket.js): `server/config/socket.js`
- [Notifications](https://github.com/thatguy4u/alumiodtu/blob/main/server/services/notification.service.js): `server/services/notification.service.js`

### API platform

- [Administration](https://github.com/thatguy4u/alumiodtu/blob/main/server/routes/admin.routes.js): `server/routes/admin.routes.js`
- [Express API](https://github.com/thatguy4u/alumiodtu/blob/main/server/server.js): `server/server.js`
- [Authentication guard](https://github.com/thatguy4u/alumiodtu/blob/main/server/middleware/auth.js): `server/middleware/auth.js`
- [PostgreSQL data](https://github.com/thatguy4u/alumiodtu/blob/main/server/config/db.js): `server/config/db.js`
- [Email delivery](https://github.com/thatguy4u/alumiodtu/blob/main/server/services/email.service.js): `server/services/email.service.js`

### Other components

- **Students and alumni**
- **Email provider**

## Connections

- Students and alumni → App routes: use platform
- App routes → Sign-in and onboarding: routes to (evidence: `src/App.jsx`)
- App routes → Role dashboards: routes to (evidence: `src/App.jsx`)
- App routes → Forum discussions: routes to (evidence: `src/App.jsx`)
- App routes → Messaging UI: routes to (evidence: `src/App.jsx`)
- Auth state → Authentication API: calls (evidence: `src/store/slices/authSlice.js`)
- API client → Express API: sends requests (evidence: `src/utils/apiClient.js`)
- Sign-in and onboarding → Auth state: updates session
- Sign-in and onboarding → Authentication API: authenticates
- Directory and profiles → Member API: searches members
- Express API → Authentication API: routes requests (evidence: `server/server.js`)
- Express API → Member API: routes requests (evidence: `server/server.js`)
- Express API → Mentorship: routes requests (evidence: `server/server.js`)
- Express API → Jobs and applications: routes requests (evidence: `server/server.js`)
- Express API → Events: routes requests (evidence: `server/server.js`)
- Express API → Community API: routes requests (evidence: `server/server.js`)
- Express API → Chat API: routes requests (evidence: `server/server.js`)
- Express API → Administration: routes requests (evidence: `server/server.js`)
- Express API → Realtime sockets: initializes (evidence: `server/server.js`)
- Express API → Authentication guard: uses guard
- Member API → PostgreSQL data: updates and searches (evidence: `server/routes/users.routes.js`)
- Authentication guard → PostgreSQL data: loads user (evidence: `server/middleware/auth.js`)
- Authentication API → Email delivery: sends account mail (evidence: `server/controllers/auth.controller.js`)
- Email delivery → Email provider: sends mail (evidence: `server/services/email.service.js`)
- Forum discussions → Community API: uses forum
- Messaging UI → Chat API: loads conversations
- Messaging UI → Realtime sockets: exchanges messages (evidence: `src/pages/messages/MessagesPage.jsx`)
- Mentorship → Notifications: creates alerts (evidence: `server/routes/mentorship.routes.js`)
- Express API → Notifications: serves alerts
