# nooraqsagit/student-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/nooraqsagit/student-management-system
- Repository: https://github.com/nooraqsagit/student-management-system

## Overview

This is a menu-driven console application for managing student records. The user enters choices and record details in Main, which delegates CRUD operations to StudentManager; Student represents each record, while StudentManager loads records at startup and saves them on exit using the relative file students.txt. The CRUD methods and file handling are visible in the excerpts. The README documents all major features; the two listed data files were not sampled, so their contents and runtime roles beyond the documented persistence file are not inferred.

Main entry points: [`src/Main.java`](https://github.com/nooraqsagit/student-management-system/blob/main/src/Main.java) (Menu and input), [`src/StudentManager.java`](https://github.com/nooraqsagit/student-management-system/blob/main/src/StudentManager.java) (CRUD manager), [`src/Student.java`](https://github.com/nooraqsagit/student-management-system/blob/main/src/Student.java) (Student model), [`students.txt`](https://github.com/nooraqsagit/student-management-system/blob/main/students.txt) (Saved records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Console application"]
  node_main["Menu and input<br/>[Main.java]"]
  node_manager["CRUD manager"]
end

subgraph group_domain["Student records"]
  node_student["Student model<br/>[Student.java]"]
end

subgraph group_persistence["File persistence"]
  node_student_file[("Saved records<br/>[students.txt]")]
end

node_user(("Console user"))

node_user -->|"enters choices"| node_main
node_main -->|"calls CRUD"| node_manager
node_main -->|"creates record"| node_student
node_manager -->|"stores and updates"| node_student
node_manager -->|"loads and saves"| node_student_file

click node_main "https://github.com/nooraqsagit/student-management-system/blob/main/src/Main.java"
click node_manager "https://github.com/nooraqsagit/student-management-system/blob/main/src/StudentManager.java"
click node_student "https://github.com/nooraqsagit/student-management-system/blob/main/src/Student.java"
click node_student_file "https://github.com/nooraqsagit/student-management-system/blob/main/students.txt"

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_main,node_manager,node_user toneBlue
class node_student toneAmber
class node_student_file toneMint
```

## Components

### Console application

- [Menu and input](https://github.com/nooraqsagit/student-management-system/blob/main/src/Main.java): `src/Main.java`
- [CRUD manager](https://github.com/nooraqsagit/student-management-system/blob/main/src/StudentManager.java): `src/StudentManager.java`

### Student records

- [Student model](https://github.com/nooraqsagit/student-management-system/blob/main/src/Student.java): `src/Student.java`

### File persistence

- [Saved records](https://github.com/nooraqsagit/student-management-system/blob/main/students.txt): `students.txt`

### Other components

- **Console user**

## Connections

- Console user → Menu and input: enters choices (evidence: `src/Main.java`)
- Menu and input → CRUD manager: calls CRUD (evidence: `src/Main.java`)
- Menu and input → Student model: creates record (evidence: `src/Main.java`)
- CRUD manager → Student model: stores and updates (evidence: `src/StudentManager.java`)
- CRUD manager → Saved records: loads and saves (evidence: `src/StudentManager.java`)
