# arminshoughi/ums architecture

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

- Interactive diagram: https://gitdiagram.com/arminshoughi/ums
- Repository: https://github.com/arminshoughi/ums

## Overview

UMS is a university academic-management system for students, faculty (“masters”), and administrators. Its visible workflow runs from role-aware React pages to HTTP requests, then through Django REST views, serializers, and domain models; student enrollment explicitly validates and records semester/course selections. The README also describes course schedules and grades, faculty course/progress management, and shared functionality. Several backend routes and frontend screens are not sampled, so those capabilities are represented at subsystem level; unsampled implementation links are not asserted.

Main entry points: [`backend/ums/UMS/urls.py`](https://github.com/arminshoughi/ums/blob/main/backend/ums/UMS/urls.py) (Django REST API), [`fronend/src/App.js`](https://github.com/arminshoughi/ums/blob/main/fronend/src/App.js) (Route application), [`fronend/src/components/Navbar.js`](https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Navbar.js) (Role navigation), [`backend/ums/apps/student/serializers/student.py`](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/serializers/student.py) (Enrollment and grade serializers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React frontend"]
  node_app["Route application<br/>[App.js]"]
  node_navigation["Role navigation<br/>[Navbar.js]"]
  node_auth_ui["Login and profile<br/>[Login.js]"]
  node_admin_ui["Admin management<br/>[AdminStudent.jsx]"]
  node_course_ui["Course management<br/>[Courses.jsx]"]
  node_student_ui["Student courses<br/>[CoursesStudent.jsx]"]
  node_master_ui["Faculty courses and grades<br/>[masterCourse.jsx]"]
  node_profile_ui["Profile editing<br/>[Profile.js]"]
  node_current_user["Current-user hook<br/>[currentUser.js]"]
  node_course_hooks["Course data hooks<br/>[course.jsx]"]
  node_date_helpers["Academic date helpers<br/>[unit.js]"]
end

subgraph group_shared["Shared backend"]
  node_shared_views["Shared account endpoints<br/>[base.py]"]
  node_shared_serializers["Shared serializers<br/>[base.py]"]
  node_user_service["User service<br/>[user.py]"]
  node_user_model["User and contacts<br/>[user.py]"]
  node_shared_consts["Shared academic constants<br/>[consts.py]"]
end

subgraph group_student["Student services"]
  node_student_views["Student endpoints<br/>[student.py]"]
  node_student_serializers["Enrollment and grade serializers<br/>[student.py]"]
  node_student_models["Student enrollment records<br/>[student.py]"]
end

subgraph group_master["Faculty services"]
  node_master_views["Faculty endpoints<br/>[master.py]"]
  node_master_serializers["Faculty serializers<br/>[master.py]"]
  node_master_models["Faculty records<br/>[master.py]"]
end

subgraph group_internal["Backend foundations"]
  node_api["Django REST API<br/>[urls.py]"]
  node_base_models["Model base<br/>[models.py]"]
  node_base_serializers["Dynamic serializer base<br/>[serializers.py]"]
end

node_actors(("University users"))
node_postgres[("PostgreSQL")]

node_actors -->|"use"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"routes"| node_admin_ui
node_app -->|"routes"| node_course_ui
node_app -->|"routes"| node_student_ui
node_app -->|"routes"| node_master_ui
node_navigation -->|"renders"| node_auth_ui
node_navigation -->|"renders"| node_profile_ui
node_navigation -->|"loads"| node_current_user
node_profile_ui -->|"reads"| node_current_user
node_profile_ui -->|"requests profile"| node_api
node_student_ui -->|"requests enrollment"| node_api
node_course_ui -->|"requests courses"| node_api
node_master_ui -->|"submits grades"| node_api
node_student_ui -->|"formats dates"| node_date_helpers
node_master_ui -->|"loads courses"| node_course_hooks
node_api -.->|"dispatches"| node_student_views
node_api -.->|"dispatches"| node_shared_views
node_api -.->|"dispatches"| node_master_views
node_student_views -->|"uses"| node_student_serializers
node_student_serializers -->|"creates records"| node_student_models
node_student_serializers -->|"uses course serializer"| node_shared_serializers
node_student_serializers -->|"extends"| node_base_serializers
node_shared_views -.->|"uses"| node_shared_serializers
node_shared_serializers -->|"delegates"| node_user_service
node_user_model -->|"extends"| node_base_models
node_student_models -->|"extends"| node_base_models
node_student_models -->|"uses choices"| node_shared_consts
node_master_views -.->|"uses"| node_master_serializers
node_master_serializers -->|"extends"| node_base_serializers
node_master_serializers -.->|"serializes"| node_master_models
node_user_model -.->|"persists"| node_postgres
node_student_models -.->|"persists"| node_postgres
node_master_models -.->|"persists"| node_postgres

click node_app "https://github.com/arminshoughi/ums/blob/main/fronend/src/App.js"
click node_navigation "https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Navbar.js"
click node_auth_ui "https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Login.js"
click node_admin_ui "https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/AdminStudent.jsx"
click node_course_ui "https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/Courses.jsx"
click node_student_ui "https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/CoursesStudent.jsx"
click node_master_ui "https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/masterCourse.jsx"
click node_profile_ui "https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Profile.js"
click node_current_user "https://github.com/arminshoughi/ums/blob/main/fronend/src/hook/currentUser.js"
click node_course_hooks "https://github.com/arminshoughi/ums/blob/main/fronend/src/hook/course.jsx"
click node_date_helpers "https://github.com/arminshoughi/ums/blob/main/fronend/src/constants/unit.js"
click node_api "https://github.com/arminshoughi/ums/blob/main/backend/ums/UMS/urls.py"
click node_shared_views "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/views/base.py"
click node_shared_serializers "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/serializers/base.py"
click node_user_service "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/services/user.py"
click node_user_model "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/models/user.py"
click node_shared_consts "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/consts.py"
click node_student_views "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/views/student.py"
click node_student_serializers "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/serializers/student.py"
click node_student_models "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/models/student.py"
click node_master_views "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/master/views/master.py"
click node_master_serializers "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/master/serializers/master.py"
click node_master_models "https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/master/models/master.py"
click node_base_models "https://github.com/arminshoughi/ums/blob/main/backend/ums/utils/models.py"
click node_base_serializers "https://github.com/arminshoughi/ums/blob/main/backend/ums/utils/serializers.py"

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_navigation,node_auth_ui,node_admin_ui,node_course_ui,node_student_ui,node_master_ui,node_profile_ui,node_current_user,node_course_hooks,node_date_helpers,node_actors toneBlue
class node_shared_views,node_shared_serializers,node_user_service,node_user_model,node_shared_consts,node_postgres toneAmber
class node_student_views,node_student_serializers,node_student_models toneMint
class node_master_views,node_master_serializers,node_master_models toneRose
class node_api,node_base_models,node_base_serializers toneIndigo
```

## Components

### React frontend

- [Route application](https://github.com/arminshoughi/ums/blob/main/fronend/src/App.js): `fronend/src/App.js`
- [Role navigation](https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Navbar.js): `fronend/src/components/Navbar.js`
- [Login and profile](https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Login.js): `fronend/src/components/Login.js`
- [Admin management](https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/AdminStudent.jsx): `fronend/src/pages/AdminStudent.jsx`
- [Course management](https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/Courses.jsx): `fronend/src/pages/Courses.jsx`
- [Student courses](https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/CoursesStudent.jsx): `fronend/src/pages/CoursesStudent.jsx`
- [Faculty courses and grades](https://github.com/arminshoughi/ums/blob/main/fronend/src/pages/masterCourse.jsx): `fronend/src/pages/masterCourse.jsx`
- [Profile editing](https://github.com/arminshoughi/ums/blob/main/fronend/src/components/Profile.js): `fronend/src/components/Profile.js`
- [Current-user hook](https://github.com/arminshoughi/ums/blob/main/fronend/src/hook/currentUser.js): `fronend/src/hook/currentUser.js`
- [Course data hooks](https://github.com/arminshoughi/ums/blob/main/fronend/src/hook/course.jsx): `fronend/src/hook/course.jsx`
- [Academic date helpers](https://github.com/arminshoughi/ums/blob/main/fronend/src/constants/unit.js): `fronend/src/constants/unit.js`

### Shared backend

- [Shared account endpoints](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/views/base.py): `backend/ums/apps/share/views/base.py`
- [Shared serializers](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/serializers/base.py): `backend/ums/apps/share/serializers/base.py`
- [User service](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/services/user.py): `backend/ums/apps/share/services/user.py`
- [User and contacts](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/models/user.py): `backend/ums/apps/share/models/user.py`
- [Shared academic constants](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/share/consts.py): `backend/ums/apps/share/consts.py`

### Student services

- [Student endpoints](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/views/student.py): `backend/ums/apps/student/views/student.py`
- [Enrollment and grade serializers](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/serializers/student.py): `backend/ums/apps/student/serializers/student.py`
- [Student enrollment records](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/student/models/student.py): `backend/ums/apps/student/models/student.py`

### Faculty services

- [Faculty endpoints](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/master/views/master.py): `backend/ums/apps/master/views/master.py`
- [Faculty serializers](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/master/serializers/master.py): `backend/ums/apps/master/serializers/master.py`
- [Faculty records](https://github.com/arminshoughi/ums/blob/main/backend/ums/apps/master/models/master.py): `backend/ums/apps/master/models/master.py`

### Backend foundations

- [Django REST API](https://github.com/arminshoughi/ums/blob/main/backend/ums/UMS/urls.py): `backend/ums/UMS/urls.py`
- [Model base](https://github.com/arminshoughi/ums/blob/main/backend/ums/utils/models.py): `backend/ums/utils/models.py`
- [Dynamic serializer base](https://github.com/arminshoughi/ums/blob/main/backend/ums/utils/serializers.py): `backend/ums/utils/serializers.py`

### Other components

- **University users**
- **PostgreSQL**

## Connections

- University users → Route application: use (evidence: `fronend/src/App.js`)
- Route application → Role navigation: renders (evidence: `fronend/src/App.js`)
- Route application → Admin management: routes (evidence: `fronend/src/App.js`)
- Route application → Course management: routes (evidence: `fronend/src/App.js`)
- Route application → Student courses: routes (evidence: `fronend/src/App.js`)
- Route application → Faculty courses and grades: routes (evidence: `fronend/src/App.js`)
- Role navigation → Login and profile: renders (evidence: `fronend/src/components/Navbar.js`)
- Role navigation → Profile editing: renders (evidence: `fronend/src/components/Navbar.js`)
- Role navigation → Current-user hook: loads (evidence: `fronend/src/components/Navbar.js`)
- Profile editing → Current-user hook: reads (evidence: `fronend/src/components/Profile.js`)
- Profile editing → Django REST API: requests profile (evidence: `fronend/src/components/Profile.js`)
- Student courses → Django REST API: requests enrollment (evidence: `fronend/src/pages/CoursesStudent.jsx`)
- Course management → Django REST API: requests courses (evidence: `fronend/src/pages/Courses.jsx`)
- Faculty courses and grades → Django REST API: submits grades (evidence: `fronend/src/pages/masterCourse.jsx`)
- Student courses → Academic date helpers: formats dates (evidence: `fronend/src/pages/CoursesStudent.jsx`)
- Faculty courses and grades → Course data hooks: loads courses (evidence: `fronend/src/pages/masterCourse.jsx`)
- Django REST API → Student endpoints: dispatches
- Django REST API → Shared account endpoints: dispatches
- Django REST API → Faculty endpoints: dispatches
- Student endpoints → Enrollment and grade serializers: uses (evidence: `backend/ums/apps/student/views/student.py`)
- Enrollment and grade serializers → Student enrollment records: creates records (evidence: `backend/ums/apps/student/serializers/student.py`)
- Enrollment and grade serializers → Shared serializers: uses course serializer (evidence: `backend/ums/apps/student/serializers/student.py`)
- Enrollment and grade serializers → Dynamic serializer base: extends (evidence: `backend/ums/apps/student/serializers/student.py`)
- Shared account endpoints → Shared serializers: uses
- Shared serializers → User service: delegates (evidence: `backend/ums/apps/share/serializers/base.py`)
- User and contacts → Model base: extends (evidence: `backend/ums/apps/share/models/user.py`)
- Student enrollment records → Model base: extends (evidence: `backend/ums/apps/student/models/student.py`)
- Student enrollment records → Shared academic constants: uses choices (evidence: `backend/ums/apps/student/models/student.py`)
- Faculty endpoints → Faculty serializers: uses
- Faculty serializers → Dynamic serializer base: extends (evidence: `backend/ums/apps/master/serializers/master.py`)
- Faculty serializers → Faculty records: serializes
- User and contacts → PostgreSQL: persists
- Student enrollment records → PostgreSQL: persists
- Faculty records → PostgreSQL: persists
