How idoufkirkamal/exammanager works
Project type and purpose
• ExamManager is a full-stack web application built on CodeIgniter 4 (PHP 8.1+) with a MySQL backend.
• Purpose: provide professors and students with dashboards to manage/view grades, handle course enrollments, and submit/review grade reclamations.
File structure
Top-level directories:
• app/ – the MVC application code
• Config/ – framework & application configuration files (routing, services, security, caching, database, etc.)
• Controllers/ – HTTP controllers (CourseController, ProfessorController, StudentController, UserController, StudentCourseController)
• Models/ – data-access layers (CourseModel, UserModel, StudentModel, etc.)
• Views/ – HTML/PHP view templates (professor/, student/, login, register, errors)
• Database/ – migrations & seeders for schema & test data
• Filters/ – route filters (AuthFilter, RoleFilter, GuestFilter)
• Enums/, Helpers/, Libraries/ – domain enums, helper functions, custom libraries
• public/ – web-root static assets (CSS, JS, images) and entry point (index.php)
• writable/ – runtime files (cache, logs, sessions, uploads)
• tests/ – PHPUnit & CodeIgniter tests (unit, integration, database)
• composer.json / package.json – PHP & Node dependencies
• tailwind.config.js – Tailwind CSS setup
Key insights from the README
• Uses MVC architecture, session-based authentication, role-based access control, CSRF protection, input validation.
• Frontend: Tailwind CSS + vanilla JS + third-party UI libs (ApexCharts, FullCalendar, Pickr, etc.).
• Backend: CodeIgniter routing & services, PHPSpreadsheet for Excel import/export, MySQL database.
• Build tools: Composer for PHP, npm for CSS/JS.
Detail
• Don’t hesitate to break out subcomponents (e.g., separate the Router, Services container, Filter chain).
• Runtime folders (writable/) to show where sessions, logs, uploads reside.
• Deployment details: migrations in CI Spark, npm build pipelines.
• That the flow of authentication, database migrations, and Excel processing is explicit.