How dicxie1/sigedo works
1. Overall shape
- This is an ASP.NET Core MVC application called Asistencia, organized as a monolithic web app with clear layers: Controllers → Services → Entity/DTO/ViewModel models → EF Core persistence → Razor Views/wwwroot.
- The app is centered on academic management rather than a generic CRUD site.
2. Primary business domains
- The codebase is split into functional modules for Courses, Students, Subjects, Careers, Classrooms, Schedules, Attendance, Syllabus, Grades/Gradebook, Reports, Dashboard, Accounts/Login, Attention records, and Gamification/Quiz.
- Each domain usually has its own controller, service logic, and dedicated Razor views/partials, which makes those modules the main diagram boxes.
3. Presentation layer
- The browser interacts with the app through Razor MVC views under Views/.
- Many views are decomposed into partials and script fragments, especially for course management, syllabus editing, attendance, classroom schedules, and modals.
- The UI relies on Bootstrap, FontAwesome, Select2, Summernote, DataTables, and Chart.js via wwwroot/lib.
4. Controller layer
- Controllers are the HTTP entry points for each subsystem, such as CourseController, AttendanceController, AcademicTermController, ScheduleController, QuizController, StudentPlayController, and ReportsController.
- They appear to orchestrate request handling and pass data to views or JSON endpoints, while pushing business rules into the service layer.
5. Service layer
- The main business logic lives in Services/, including CourseService, AttendanceService, ScheduleService, SyllabusService, AcademicPeriodService, AcademicTermService, DashboardService, GamificationService, and GradeCalculatorService.
- This layer is the key boundary between UI and persistence: controllers call services, services coordinate EF Core queries and domain rules, and return DTOs/ViewModels for rendering.
6. Persistence and data model
- Data/ApplicationDbContext.cs is the central EF Core context, with entity mappings/configurations in Data/Configurations/.
- DbSeeder.cs indicates the app can bootstrap reference data.
- The domain model is relational and academic-centric: Student, Teacher, Course, Subject, Enrollment, Attendance, Schedule, SyllabusItem, StudentGrade, AcademicTerm, AcademicPeriod, Classroom, and attention/gamification entities.
7. Syllabus and academic-term workflow
- One of the core product areas is the dynamic syllabus editor described in the README.
- The flow is: academic-term/course data is loaded, editable syllabus rows are manipulated in the browser, and the result is saved either row-by-row or in batch.
- Supporting DTOs and view models such as SyllabusDto, SyllabusPreviewRowDto, and TermDto show that the UI is driven by structured projections rather than raw entities.
8. Document import/export subsystem
- The Documents/ folder contains specialized document-processing logic, especially for attendance documents and Excel gradebook exports.
- The README says Word .docx import is done via OpenXML, with a preview step before persistence.
- This subsystem is a separate boundary from the normal MVC flow: it transforms external document formats into internal DTOs/models, then hands them to application services.
9. Attendance, attention, and reporting
- Attendance is a full workflow with enums/status helpers, document generation, and view models for reports.
- “Attention” appears to be a second student-follow-up process, with records/participants plus notification-oriented DTOs and views.
- Reporting is split between course-level and broader academic dashboards, including CourseReportController, DashboardController, and ReportsController, with computed summaries rather than simple entity listing.
10. Gamification and real-time quiz
- The repository includes a quiz/game subsystem with Quiz, GameSession, GamePlayer, and Question models.
- Hubs/QuizHub.cs indicates SignalR-style real-time communication for live quiz/student-play interactions.
- The StudentPlay views and controller form a separate user experience from the academic admin screens, likely for synchronous classroom participation.
11. Identity and user-facing access
- ApplicationUser, LoginController, AccountController, and account views show there is a user/authentication layer.
- The app likely supports role-sensitive flows such as teacher/admin/student interactions, though the repo is structured as a single MVC application rather than separate services.
12. Frontend asset strategy
- Static assets are bundled in wwwroot/, with custom JavaScript under wwwroot/js and many third-party libraries checked in locally.
- Some areas lean heavily on client-side interaction, especially syllabus editing, attendance modals, course administration, calendars, and quiz/game screens.
- Views/*/_Scripts.cshtml and similar partials suggest scripts are assembled per module rather than globally.
13. Architecture boundaries to draw
- A good diagram would show four main boundaries: Browser/UI, ASP.NET Core MVC app, EF Core + SQL Server persistence, and external document/real-time services.
- Inside the MVC app, the most important internal separations are controllers, services, domain models/DTOs/view models, and specialized infrastructure such as document generators and the quiz hub.
14. Repo character
- This is not a microservice system; it is a single cohesive educational management platform with multiple feature modules sharing one database, one MVC host, and one shared domain model.
Main entry points: Controllers Controllers · Views Razor Views · Services Services · ApplicationDbContext.cs Db Context
Components 19
Browser UI
Razor views, partials, and client-side interaction in the browser
- Razor Views · MVC pages, partials, and view scripts for each module
Views - Web Assets · CSS, JavaScript, libraries, images, and sounds
wwwroot
ASP.NET Core MVC
HTTP entry points, application services, and shared domain models
- App Host · ASP.NET Core application bootstrap and middleware pipeline
Program.cs - Controllers · HTTP entry points for academic, account, reporting, and play flows
Controllers - Services · Core business rules for courses, attendance, schedules, syllabus, gamification, and reports
Services - Domain Models · Academic entities, DTOs, enums, and view models shared across the app
Models - Course Module · Course browsing, registration, details, syllabus, assessments, and attendance tabs
Controllers/CourseController.cs - Attendance Module · Attendance capture, document-backed reports, and status handling
Controllers/AttendanceController.cs - Schedule Module · Classroom and weekly schedule management
Controllers/ScheduleController.cs - Syllabus Module · Dynamic syllabus editing and preview workflows
Controllers/SyllabusController.cs - Gradebook Module · Grade calculation, gradebook views, and export-oriented flows
Controllers/GradebookController.cs - Reports Module · Course reports, dashboard summaries, and computed analytics
Controllers/ReportsController.cs - Quiz & Play · Gamification, live quiz hosting, and student play experience
Controllers/StudentPlayController.cs - Accounts · Login, profile, and user-facing access flows
Controllers/AccountController.cs
Persistence
EF Core context, entity mappings, and seeded relational data
- Db Context · ApplicationDbContext and entity configuration boundary
Data/ApplicationDbContext.cs - Db Seeder · Bootstraps reference and demo data
Data/DbSeeder.cs - Entity Configs · EF Core configuration classes for domain persistence
Data/Configurations
Connections 35
- App Host → Controllers: routes to · Registers MVC endpoints and dispatches requests
- App Host → Services: wires · Registers application services and dependencies
- App Host → Db Context: configures · Sets up EF Core persistence and database access
- Controllers → Course Module: contains · Course-related HTTP actions
- Controllers → Attendance Module: contains · Attendance-related HTTP actions
- Controllers → Schedule Module: contains · Schedule-related HTTP actions
- Controllers → Syllabus Module: contains · Syllabus-related HTTP actions
- Controllers → Gradebook Module: contains · Gradebook-related HTTP actions
- Controllers → Reports Module: contains · Reporting and dashboard actions
- Controllers → Quiz & Play: contains · Quiz, gamification, and student play actions
- Controllers → Accounts: contains · Authentication and profile actions
- Course Module → Services: uses · Delegates business rules and data shaping
- Attendance Module → Services: uses · Delegates attendance workflows and summaries
- Schedule Module → Services: uses · Delegates timetable logic
- Syllabus Module → Services: uses · Delegates syllabus editing and preview logic
- Gradebook Module → Services: uses · Delegates grade calculation and export preparation
- Reports Module → Services: uses · Delegates report composition
- Quiz & Play → Services: uses · Delegates game session and player logic
- Services → Db Context: queries · Reads and writes academic entities through EF Core
- Db Context → Entity Configs: applies · Uses entity configuration classes
- Db Context → Db Seeder: initialized by · Loads seed/reference data at startup or setup
- Controllers → Domain Models: binds · Uses entities, DTOs, and view models for requests and responses
- Services → Domain Models: returns · Produces structured DTOs and view models
- Razor Views → Course Module: renders · Course pages and partials
- Razor Views → Attendance Module: renders · Attendance pages and partials
- Razor Views → Schedule Module: renders · Schedule pages and partials
- Razor Views → Syllabus Module: renders · Syllabus editing UI
- Razor Views → Gradebook Module: renders · Gradebook UI and scripts
- Razor Views → Reports Module: renders · Reports and dashboard pages
- Razor Views → Quiz & Play: renders · Quiz host and student play screens
- Razor Views → Accounts: renders · Login and profile screens
- Web Assets → Razor Views: supports · Client-side styling, scripting, and UI libraries
- Documents → Attendance Module: imports · Transforms attendance documents into app data
- Documents → Gradebook Module: exports · Produces Excel gradebook outputs
- Quiz Hub → Quiz & Play: streams · Supports live quiz session updates