How wyat2/teacherapp works
TeacherApp is an ASP.NET Core MVC student and user management system for TRIO programs. Staff enter through the web application, authenticate or complete first-run setup, then manage student records and related academic/contact information; reporting and CSV export provide outputs, while audit logging records changes. Separate interfaces cover administration, directors, tutors, and permissions. The README documents role-based access, search/filtering, compliance, and cloud-backed PostgreSQL. Some controller and service implementations were not sampled, so their links are included only where the index or README supports them.
Main entry points: ApplicationDbContext.cs Application database · StudentsController.cs Student management · Program.cs MVC application · AccountController.cs Account access
Components 23
Web entry and identity
- MVC application
Program.cs - Account access
Controllers/AccountController.cs - First-run setup
Services/SetupWizardService.cs
Program operations
- Admin management
Controllers/AdminsController.cs - Director dashboard
Controllers/DirectorsController.cs - Tutor management
Controllers/TutorsController.cs - Role permissions
Controllers/PermissionsController.cs - Reports and export
Controllers/ReportsController.cs
Student records
- Student management
Controllers/StudentsController.cs - Student profile
Models/Student.cs - Class records
Models/StudentClass.cs - Contact records
Models/Contact.cs - Homework records
Models/Homework.cs - Grant and school info
Models/DirectorsPageInfo.cs - User identity
Models/ApplicationUser.cs - Permission rules
Models/RolePermission.cs - Dropdown options
Models/DropdownValue.cs - Audit entries
Models/AuditLog.cs
Persistence and services
- Application database
Data/ApplicationDbContext.cs - Audit logging
Services/AuditLogService.cs - Email delivery
Services/EmailService.cs - Image handling
Services/ImageHelper.cs
Other components
- Staff user
Connections 24
- Staff user → MVC application: uses
README.md - MVC application → Account access: routes requests
Program.cs - MVC application → First-run setup: checks first run
Program.cs - Account access → Application database: reads and writes
Controllers/AccountController.cs - Account access → Email delivery: requests email
Controllers/AccountController.cs - First-run setup → Application database: initializes records
Services/SetupWizardService.cs - Admin management → Application database: manages users
Controllers/AdminsController.cs - Director dashboard → Application database: manages director info
Controllers/DirectorsController.cs - Tutor management → Application database: manages tutors
Controllers/TutorsController.cs - Role permissions → Application database: stores permissions
Controllers/PermissionsController.cs - Reports and export → Application database: queries student data
Controllers/ReportsController.cs - Student management → Application database: manages records
Controllers/StudentsController.cs - Student management → Audit logging: logs changes
Controllers/StudentsController.cs - Student management → Image handling: handles images
Controllers/StudentsController.cs - Application database → Student profile: maps
Data/ApplicationDbContext.cs - Application database → Class records: maps
Data/ApplicationDbContext.cs - Application database → Contact records: maps
Data/ApplicationDbContext.cs - Application database → Homework records: maps
Data/ApplicationDbContext.cs - Application database → Grant and school info: maps
Data/ApplicationDbContext.cs - Application database → User identity: maps
Data/ApplicationDbContext.cs - Application database → Permission rules: maps
Data/ApplicationDbContext.cs - Application database → Dropdown options: maps
Data/ApplicationDbContext.cs - Application database → Audit entries: maps
Data/ApplicationDbContext.cs - Audit logging → Application database: persists events
Services/AuditLogService.cs