# d3vlin/schoolreportgenerator architecture

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

- Interactive diagram: https://gitdiagram.com/d3vlin/schoolreportgenerator
- Repository: https://github.com/d3vlin/schoolreportgenerator

## Overview

1. **Project shape**
   - This is a small **.NET C# console application** called **SchoolReportGenerator**.
   - The architecture is centered around a **menu-driven CLI** that operates on a school domain model and prints reports to the console.

2. **Entry point and execution**
   - `Program.cs` is the application entry point.
   - From there, the app likely boots the menu flow and hands control to the interactive engine classes rather than exposing a web/API boundary.

3. **Application layer**
   - The `App/` folder contains the orchestration logic:
     - `MenuEngine.cs` appears to manage user interaction and menu navigation.
     - `SchoolEngine.cs` likely contains the core business workflows for school data operations.
     - `Reporter.cs` suggests report composition/aggregation logic, probably formatting domain data for output.
   - This layer is where user input is translated into operations on the school model.

4. **Domain model**
   - The `Entities/` folder defines the core school objects:
     - `School`, `Course`, `Asignature`, `Student`, `Evaluation`
     - supporting/value-like types such as `StudentAverage`, `DictionaryKey`, `SchoolTypes`, `WorkingDayTypes`
     - shared base abstractions like `BaseSchoolObj` and `IPlace`
   - These classes represent the state the application manipulates and reports on.

5. **Likely object relationships**
   - `School` is the aggregate/root concept for the system.
   - `Course` and `Asignature` represent structural elements under the school.
   - `Student` and `Evaluation` model learner performance and grading.
   - `StudentAverage` is likely a derived result used in reporting rather than a primary stored entity.

6. **Business logic boundary**
   - `SchoolEngine` is the main boundary between the menu/UI and the domain entities.
   - This suggests the project separates **interaction concerns** from **school rules and calculations**, even though it is a compact console app.

7. **Reporting and output**
   - `Reporter.cs` and `Util/Printer.cs` form the output path.
   - The probable flow is: engine gathers/produces data → reporter shapes it → printer writes to console.
   - This keeps formatting concerns distinct from domain logic.

8. **Utilities and shared helpers**
   - `Util/Printer.cs` is the only explicit utility shown.
   - It likely centralizes console output formatting, reducing duplication across menu and report paths.

9. **Data flow**
   - The dominant runtime flow is:
     - user starts the app
     - menu prompts for choices
     - school engine executes operations
     - reporter generates summaries or lists
     - printer outputs results to the console
   - There is no visible persistence layer, so data appears to be in-memory or locally constructed.

10. **Technology and runtime**
   - The project is built with **C# / .NET** (`SchoolReportGenerator.csproj`).
   - README indicates it runs via `dotnet run`, reinforcing that this is a self-contained CLI app.
   - No external databases, web frameworks, message brokers, or cloud services are evident in the tree.

11. **Architecture boundaries to diagram**
   - A useful diagram would show three layers:
     - **Console/UI layer:** menu and printing
     - **Application/engine layer:** school workflows and reporting orchestration
     - **Domain layer:** entities and enums representing the school model
   - The main dependency direction is from UI/engine code down into entities, not the reverse.

12. **Scope and constraints**
   - This repository appears focused on **learning and practicing C# fundamentals** through a school-report scenario.
   - It is intentionally lightweight: no persistence, no network boundary, and no separate service processes are visible.

Main entry points: [`App/SchoolEngine.cs`](https://github.com/d3vlin/schoolreportgenerator/blob/main/App/SchoolEngine.cs) (School Engine), [`Entities/School.cs`](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/School.cs) (School), [`Entities/Course.cs`](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Course.cs) (Course), [`Entities/BaseSchoolObj.cs`](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/BaseSchoolObj.cs) (Base Obj)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry Point"]
  node_program(("Program<br/>entry<br/>[Program.cs]"))
end

subgraph group_app["Application Layer"]
  node_menu_engine["Menu Engine<br/>cli navigation<br/>[MenuEngine.cs]"]
  node_school_engine["School Engine<br/>workflow engine<br/>[SchoolEngine.cs]"]
  node_reporter["Reporter<br/>report composer<br/>[Reporter.cs]"]
end

subgraph group_domain["Domain Model"]
  node_school[("School<br/>aggregate root<br/>[School.cs]")]
  node_course["Course<br/>domain entity<br/>[Course.cs]"]
  node_asignature["Asignature<br/>domain entity<br/>[Asignature.cs]"]
  node_student["Student<br/>domain entity<br/>[Student.cs]"]
  node_evaluation["Evaluation<br/>domain entity<br/>[Evaluation.cs]"]
  node_student_average(("Student Avg<br/>derived value<br/>[StudentAverage.cs]"))
  node_base_obj["Base Obj<br/>base class<br/>[BaseSchoolObj.cs]"]
  node_iplace{{"IPlace<br/>interface<br/>[IPlace.cs]"}}
  node_dictionary_key["Dict Key<br/>key type<br/>[DictionaryKey.cs]"]
  node_school_types["School Types<br/>enum<br/>[SchoolTypes.cs]"]
  node_working_day_types["Working Day<br/>enum<br/>[WorkingDayTypes.cs]"]
end

subgraph group_util["Utilities"]
  node_printer["Printer<br/>console output<br/>[Printer.cs]"]
end

node_program -->|"starts"| node_menu_engine
node_menu_engine -->|"dispatches"| node_school_engine
node_menu_engine -->|"prints"| node_printer
node_school_engine -->|"operates on"| node_school
node_school_engine -->|"uses"| node_course
node_school_engine -->|"uses"| node_student
node_school_engine -->|"uses"| node_evaluation
node_school_engine -->|"uses"| node_asignature
node_school_engine -->|"indexes"| node_dictionary_key
node_reporter -->|"reads from"| node_school_engine
node_reporter -->|"computes"| node_student_average
node_reporter -->|"renders"| node_printer
node_school -->|"inherits"| node_base_obj
node_school -->|"implements"| node_iplace
node_course -->|"inherits"| node_base_obj
node_student -->|"inherits"| node_base_obj
node_evaluation -->|"inherits"| node_base_obj
node_school -->|"categorizes"| node_school_types
node_school -->|"categorizes"| node_working_day_types
node_course -->|"contains"| node_student
node_course -->|"contains"| node_evaluation

click node_program "https://github.com/d3vlin/schoolreportgenerator/blob/main/Program.cs"
click node_menu_engine "https://github.com/d3vlin/schoolreportgenerator/blob/main/App/MenuEngine.cs"
click node_school_engine "https://github.com/d3vlin/schoolreportgenerator/blob/main/App/SchoolEngine.cs"
click node_reporter "https://github.com/d3vlin/schoolreportgenerator/blob/main/App/Reporter.cs"
click node_printer "https://github.com/d3vlin/schoolreportgenerator/blob/main/Util/Printer.cs"
click node_school "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/School.cs"
click node_course "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Course.cs"
click node_asignature "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Asignature.cs"
click node_student "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Student.cs"
click node_evaluation "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Evaluation.cs"
click node_student_average "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/StudentAverage.cs"
click node_base_obj "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/BaseSchoolObj.cs"
click node_iplace "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/IPlace.cs"
click node_dictionary_key "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/DictionaryKey.cs"
click node_school_types "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/SchoolTypes.cs"
click node_working_day_types "https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/WorkingDayTypes.cs"

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_program toneBlue
class node_menu_engine,node_school_engine,node_reporter toneAmber
class node_school,node_course,node_asignature,node_student,node_evaluation,node_student_average,node_base_obj,node_iplace,node_dictionary_key,node_school_types,node_working_day_types toneMint
class node_printer toneRose
```

## Components

### Entry Point

Application startup and bootstrapping

- [Program](https://github.com/d3vlin/schoolreportgenerator/blob/main/Program.cs): entry · App entry point · `Program.cs`

### Application Layer

Menu flow, orchestration, and report composition

- [Menu Engine](https://github.com/d3vlin/schoolreportgenerator/blob/main/App/MenuEngine.cs): cli navigation · Interactive menu and user prompts · `App/MenuEngine.cs`
- [School Engine](https://github.com/d3vlin/schoolreportgenerator/blob/main/App/SchoolEngine.cs): workflow engine · Core school operations and business flow · `App/SchoolEngine.cs`
- [Reporter](https://github.com/d3vlin/schoolreportgenerator/blob/main/App/Reporter.cs): report composer · Builds report-ready views and summaries · `App/Reporter.cs`

### Domain Model

School entities and supporting value types

- [School](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/School.cs): aggregate root · Top-level school model · `Entities/School.cs`
- [Course](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Course.cs): domain entity · Represents a course or class grouping · `Entities/Course.cs`
- [Asignature](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Asignature.cs): domain entity · Subject or assignment concept · `Entities/Asignature.cs`
- [Student](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Student.cs): domain entity · Learner record and related state · `Entities/Student.cs`
- [Evaluation](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/Evaluation.cs): domain entity · Grade or assessment record · `Entities/Evaluation.cs`
- [Student Avg](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/StudentAverage.cs): derived value · Computed average used in reports · `Entities/StudentAverage.cs`
- [Base Obj](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/BaseSchoolObj.cs): base class · Shared school object abstraction · `Entities/BaseSchoolObj.cs`
- [IPlace](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/IPlace.cs): interface · Location-related contract · `Entities/IPlace.cs`
- [Dict Key](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/DictionaryKey.cs): key type · Composite or lookup key for school data · `Entities/DictionaryKey.cs`
- [School Types](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/SchoolTypes.cs): enum · School classification values · `Entities/SchoolTypes.cs`
- [Working Day](https://github.com/d3vlin/schoolreportgenerator/blob/main/Entities/WorkingDayTypes.cs): enum · Working day classification values · `Entities/WorkingDayTypes.cs`

### Utilities

Shared console output helpers

- [Printer](https://github.com/d3vlin/schoolreportgenerator/blob/main/Util/Printer.cs): console output · Writes formatted text to the console · `Util/Printer.cs`

## Connections

- Program → Menu Engine: starts · Boots the interactive CLI flow
- Menu Engine → School Engine: dispatches · Routes user choices into school operations
- Menu Engine → Printer: prints · Uses console output for prompts and menus
- School Engine → School: operates on · Coordinates core school state and actions
- School Engine → Course: uses · Works with course structure
- School Engine → Student: uses · Works with student records
- School Engine → Evaluation: uses · Processes assessment data
- School Engine → Asignature: uses · Relates school workflow to subjects
- School Engine → Dict Key: indexes · Supports keyed lookup or grouping
- Reporter → School Engine: reads from · Consumes school workflow results
- Reporter → Student Avg: computes · Produces derived averages for reports
- Reporter → Printer: renders · Sends formatted report output to console
- School → Base Obj: inherits · Shares common school object behavior
- School → IPlace: implements · Carries a place/location contract
- Course → Base Obj: inherits · Shares common model behavior
- Student → Base Obj: inherits · Shares common model behavior
- Evaluation → Base Obj: inherits · Shares common model behavior
- School → School Types: categorizes · Uses school type classification
- School → Working Day: categorizes · Uses working day classification
- Course → Student: contains · Courses group students
- Course → Evaluation: contains · Courses collect evaluations
