# munkhorgil1003/num-tms-26-os architecture

> Architecture diagram of the GitHub repository munkhorgil1003/num-tms-26-os, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/munkhorgil1003/num-tms-26-os
- Repository: https://github.com/munkhorgil1003/num-tms-26-os

## Overview

This is the MUIS thesis-management system: a hybrid React microfrontend and Spring microservice product supporting the thesis lifecycle from topic selection and planning through reports, defense, and grades. Browser users enter through role-based interfaces; the README documents REST/JSON communication with backend services. Service internals are only partly sampled, so detailed service-to-service calls and event wiring are omitted rather than inferred. The README documents PostgreSQL and Kafka as infrastructure, while the excerpts show selected persistence, evaluation, committee, messaging, notification, and grading behaviors.

Main entry points: [`module-admin/src/App.tsx`](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-admin/src/App.tsx) (Admin console), [`evaluation_service/src/main/java/mn/num/edu/evaluation_service/application/service/EvaluationCommandService.java`](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/evaluation_service/src/main/java/mn/num/edu/evaluation_service/application/service/EvaluationCommandService.java) (Evaluation and review), [`module-student/src/App.tsx`](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-student/src/App.tsx) (Student interface), [`thesis_service/src/main/java/mn/num/edu/thesis_service/application/service/ThesisApplicationService.java`](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/thesis_service/src/main/java/mn/num/edu/thesis_service/application/service/ThesisApplicationService.java) (Thesis records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontends["User interfaces"]
  node_authui["Sign-in UI<br/>[App.tsx]"]
  node_adminui["Admin console<br/>[App.tsx]"]
  node_studentui["Student interface<br/>[App.tsx]"]
  node_teacherui["Teacher interface<br/>[App.tsx]"]
end

subgraph group_lifecycle["Thesis lifecycle"]
  node_topics["Topics and plans"]
  node_thesis["Thesis records"]
  node_workflow["Workflow stages"]
  node_evaluation["Evaluation and review"]
  node_grading["Grades and resolutions"]
end

subgraph group_operations["Academic operations"]
  node_committees["Committees"]
  node_users["Users and roles"]
  node_reports["Academic reports"]
  node_messages["Messaging"]
  node_notifications["Notifications"]
  node_analytics["Analytics"]
end

subgraph group_platform["Shared platform"]
  node_postgres[("PostgreSQL")]
  node_kafka["Kafka"]
end

node_browser(("Browser user"))

node_browser -->|"signs in"| node_authui
node_browser -->|"uses admin"| node_adminui
node_browser -->|"uses student"| node_studentui
node_browser -->|"uses teacher"| node_teacherui
node_authui -->|"authenticates via API"| node_users
node_adminui -->|"REST/JSON requests"| node_topics
node_adminui -->|"REST/JSON requests"| node_committees
node_adminui -->|"REST/JSON requests"| node_evaluation
node_adminui -->|"REST/JSON requests"| node_reports
node_studentui -->|"REST/JSON requests"| node_thesis
node_studentui -->|"REST/JSON requests"| node_workflow
node_teacherui -->|"REST/JSON requests"| node_evaluation
node_topics -->|"lifecycle stage"| node_thesis
node_thesis -->|"lifecycle stage"| node_workflow
node_workflow -->|"lifecycle stage"| node_evaluation
node_evaluation -->|"lifecycle stage"| node_grading
node_messages -->|"publishes event"| node_kafka
node_grading -.->|"stores resolution"| node_postgres
node_committees -.->|"persists assignments"| node_postgres
node_evaluation -.->|"persists evaluations"| node_postgres
node_notifications -.->|"event integration"| node_kafka
node_analytics -.->|"event integration"| node_kafka

click node_authui "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-auth/src/App.tsx"
click node_adminui "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-admin/src/App.tsx"
click node_studentui "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-student/src/App.tsx"
click node_teacherui "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-teacher/src/App.tsx"
click node_topics "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/topic_service/src/main/java/com/tms/thesissystem/application/service/WorkflowQueryService.java"
click node_thesis "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/thesis_service/src/main/java/mn/num/edu/thesis_service/application/service/ThesisApplicationService.java"
click node_workflow "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/workflow_service/src/main/java/mn/num/edu/workflow_service/application/service/WorkflowApplicationService.java"
click node_evaluation "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/evaluation_service/src/main/java/mn/num/edu/evaluation_service/application/service/EvaluationCommandService.java"
click node_grading "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/grading_service/src/main/java/mn/num/edu/grading_service/application/service/GenerateResolutionService.java"
click node_committees "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/committee_service/src/main/java/mn/num/edu/committee_service/application/service/AssignTeacherService.java"
click node_users "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/user_service/src/main/java/mn/num/edu/user_service/adapter/in/web/controller/UserController.java"
click node_reports "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/report_service/src/main/java/mn/num/edu/report_service/application/service/ReportApplicationService.java"
click node_messages "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/message_service/src/main/java/mn/num/edu/message_service/application/service/SendMessageService.java"
click node_notifications "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/notification_service/src/main/java/mn/num/edu/notification_service/application/service/NotificationApplicationService.java"
click node_analytics "https://github.com/munkhorgil1003/num-tms-26-os/blob/main/analytic_service/src/main/java/mn/num/edu/analytic_service/application/service/AnalyticsApplicationService.java"

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_authui,node_adminui,node_studentui,node_teacherui,node_browser toneBlue
class node_topics,node_thesis,node_workflow,node_evaluation,node_grading toneAmber
class node_committees,node_users,node_reports,node_messages,node_notifications,node_analytics toneMint
class node_postgres,node_kafka toneRose
```

## Components

### User interfaces

- [Sign-in UI](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-auth/src/App.tsx): `module-auth/src/App.tsx`
- [Admin console](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-admin/src/App.tsx): `module-admin/src/App.tsx`
- [Student interface](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-student/src/App.tsx): `module-student/src/App.tsx`
- [Teacher interface](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/module-teacher/src/App.tsx): `module-teacher/src/App.tsx`

### Thesis lifecycle

- [Topics and plans](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/topic_service/src/main/java/com/tms/thesissystem/application/service/WorkflowQueryService.java): `topic_service/src/main/java/com/tms/thesissystem/application/service/WorkflowQueryService.java`
- [Thesis records](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/thesis_service/src/main/java/mn/num/edu/thesis_service/application/service/ThesisApplicationService.java): `thesis_service/src/main/java/mn/num/edu/thesis_service/application/service/ThesisApplicationService.java`
- [Workflow stages](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/workflow_service/src/main/java/mn/num/edu/workflow_service/application/service/WorkflowApplicationService.java): `workflow_service/src/main/java/mn/num/edu/workflow_service/application/service/WorkflowApplicationService.java`
- [Evaluation and review](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/evaluation_service/src/main/java/mn/num/edu/evaluation_service/application/service/EvaluationCommandService.java): `evaluation_service/src/main/java/mn/num/edu/evaluation_service/application/service/EvaluationCommandService.java`
- [Grades and resolutions](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/grading_service/src/main/java/mn/num/edu/grading_service/application/service/GenerateResolutionService.java): `grading_service/src/main/java/mn/num/edu/grading_service/application/service/GenerateResolutionService.java`

### Academic operations

- [Committees](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/committee_service/src/main/java/mn/num/edu/committee_service/application/service/AssignTeacherService.java): `committee_service/src/main/java/mn/num/edu/committee_service/application/service/AssignTeacherService.java`
- [Users and roles](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/user_service/src/main/java/mn/num/edu/user_service/adapter/in/web/controller/UserController.java): `user_service/src/main/java/mn/num/edu/user_service/adapter/in/web/controller/UserController.java`
- [Academic reports](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/report_service/src/main/java/mn/num/edu/report_service/application/service/ReportApplicationService.java): `report_service/src/main/java/mn/num/edu/report_service/application/service/ReportApplicationService.java`
- [Messaging](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/message_service/src/main/java/mn/num/edu/message_service/application/service/SendMessageService.java): `message_service/src/main/java/mn/num/edu/message_service/application/service/SendMessageService.java`
- [Notifications](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/notification_service/src/main/java/mn/num/edu/notification_service/application/service/NotificationApplicationService.java): `notification_service/src/main/java/mn/num/edu/notification_service/application/service/NotificationApplicationService.java`
- [Analytics](https://github.com/munkhorgil1003/num-tms-26-os/blob/main/analytic_service/src/main/java/mn/num/edu/analytic_service/application/service/AnalyticsApplicationService.java): `analytic_service/src/main/java/mn/num/edu/analytic_service/application/service/AnalyticsApplicationService.java`

### Shared platform

- **PostgreSQL**
- **Kafka**

### Other components

- **Browser user**

## Connections

- Browser user → Sign-in UI: signs in (evidence: `README.md`)
- Browser user → Admin console: uses admin (evidence: `README.md`)
- Browser user → Student interface: uses student (evidence: `README.md`)
- Browser user → Teacher interface: uses teacher (evidence: `README.md`)
- Sign-in UI → Users and roles: authenticates via API (evidence: `README.md`)
- Admin console → Topics and plans: REST/JSON requests (evidence: `README.md`)
- Admin console → Committees: REST/JSON requests (evidence: `README.md`)
- Admin console → Evaluation and review: REST/JSON requests (evidence: `README.md`)
- Admin console → Academic reports: REST/JSON requests (evidence: `README.md`)
- Student interface → Thesis records: REST/JSON requests (evidence: `README.md`)
- Student interface → Workflow stages: REST/JSON requests (evidence: `README.md`)
- Teacher interface → Evaluation and review: REST/JSON requests (evidence: `README.md`)
- Topics and plans → Thesis records: lifecycle stage (evidence: `README.md`)
- Thesis records → Workflow stages: lifecycle stage (evidence: `README.md`)
- Workflow stages → Evaluation and review: lifecycle stage (evidence: `README.md`)
- Evaluation and review → Grades and resolutions: lifecycle stage (evidence: `README.md`)
- Messaging → Kafka: publishes event (evidence: `message_service/src/main/java/mn/num/edu/message_service/application/service/SendMessageService.java`)
- Grades and resolutions → PostgreSQL: stores resolution
- Committees → PostgreSQL: persists assignments
- Evaluation and review → PostgreSQL: persists evaluations
- Notifications → Kafka: event integration
- Analytics → Kafka: event integration
