How jaimemontanares/uni-system works
1. This is a small C# .NET console application for university administration. The architecture is intentionally simple and in-memory: no database, no web layer, and no persistence beyond process lifetime.
2. The application entry point is Program.cs. From the README flow, startup initializes demo data through Data/SeedData.cs and then hands control to the console UI in UI/Menu.cs.
3. The repo is organized into three main runtime boundaries:
- UI/ for console interaction and user prompts
- Services/ for business rules and operations
- Models/ for the domain entities that hold state
4. Services/UniversityManager.cs is the central business component. It likely acts as the in-memory application service/facade that coordinates student, course, book, and loan operations, enforcing rules such as enrollment limits and loan availability.
5. Models/ contains the core domain objects:
- User as the base identity concept
- Student and ExchangeStudent as student variants
- Employee as staff representation
- Course for course data and enrollment
- Book and Loan for library operations
These are simple data/behavior classes rather than persistence entities.
6. Data/SeedData.cs provides the initial graph of objects used at startup. It populates sample students, courses, and books so the console menu can be exercised immediately without manual setup.
7. The main data flow is linear and synchronous: seeded collections are created at startup, the menu receives user input, the UI delegates actions to UniversityManager, and the manager updates the in-memory model collections. There is no background processing or external integration.
8. The repository currently combines multiple business domains in one service layer:
- student management
- course management
- library/book loans
This makes UniversityManager the main aggregation point, but also means domain boundaries are not yet split into separate services.
9. The README shows the current feature set is centered on CRUD-style operations and basic rules:
- create/view courses
- enroll/remove students
- register/loan/return books
- view participants and available books
The important constraints are enforced in application logic, not by infrastructure.
10. The architecture is designed for learning and incremental refactoring. The README roadmap indicates planned future separation into role-based users, dedicated services, and role-specific menus, but the current codebase is still a single-console-flow, in-memory design.
11. For an architecture diagram, the key components are:
- Program.cs as the startup node
- SeedData as the bootstrap data source
- Menu as the interactive UI boundary
- UniversityManager as the business logic hub
- Models/* as the shared domain state
- no external services, database, or API layer
Main entry points: UniversityManager.cs University Manager · Student.cs Student · Program.cs Program · SeedData.cs Seed Data
Components 11
Runtime
Startup, console interaction, and orchestration
- Program · Application startup and wiring
Program.cs - Seed Data · Creates initial demo objects
Data/SeedData.cs - Menu · Reads user input and dispatches actions
UI/Menu.cs - University Manager · Central in-memory business logic and rules
Services/UniversityManager.cs
Domain
In-memory university and library model
- User · Shared identity concept
Models/User.cs - Student · Student state and behavior
Models/Student.cs - Exchange Student · Specialized student type
Models/ExchangeStudent.cs - Employee · University staff representation
Models/Employee.cs - Course · Course data and enrollment
Models/Course.cs - Book · Library inventory item
Models/Book.cs - Loan · Borrowing record
Models/Loan.cs
Connections 13
- Program → Seed Data: seeds · Initializes demo data at startup
- Program → Menu: starts · Hands control to the console UI
- Menu → University Manager: calls · Delegates user actions to business logic
- Seed Data → University Manager: loads · Supplies initial in-memory collections
- University Manager → Student: manages · Applies student rules and updates
- University Manager → Course: manages · Creates and updates courses
- University Manager → Book: manages · Tracks books and availability
- University Manager → Loan: manages · Handles checkout and return flows
- Student → User: inherits · Student extends the shared user concept
- Exchange Student → Student: inherits · Exchange student specializes student
- Employee → User: inherits · Employee shares base identity behavior
- Loan → Book: references · Loan is tied to a borrowed book
- Course → Student: enrolls · Courses hold enrolled students