How regcyb1/student-result-managment-system works
Project type and purpose
• This is a monolithic, full‐stack PHP web application called “Student Result Management System.”
• Purpose: allow an administrator to log in, manage classes, students, subjects, notices, and results; send OTPs via email for privacy; and display reports and charts.
File structure
• Top-level PHP files (index.php, admin-login.php, dashboard.php, add-*.php, edit-*.php, manage-*.php, etc.) implement UI controllers and views in the same folder.
• includes/ holds shared PHP modules (config.php for DB credentials; topbar.php/leftbar.php for layout; PHPMailer library for SMTP).
• css/, js/, fonts/, images/ contain static assets (Bootstrap, jQuery, DataTables, amCharts, CKEditor, etc.).
• sql file/srms.sql contains the MySQL schema/data.
• package.json and gulpfile.babel.js suggest a front‐end build tool, but the app primarily serves prebuilt assets.
README for additional insights
• Deployment: drop into XAMPP’s htdocs, start Apache & MySQL, import the srms database, visit http://localhost/srms/.
• Authentication: Admin credentials are hard-coded; OTP via Mailtrap using PHPMailer.
a. Main components
• Browser/client GUI
• Apache HTTP Server + PHP interpreter (monolith)
• MySQL database (srms)
• Static asset storage (CSS/JS/images served by Apache)
• SMTP mail service (Mailtrap) via PHPMailer
b. Relationships & data flows
1. Client ↔ HTTP (port 80) ↔ Apache/PHP
2. PHP scripts ↔ TCP (port 3306) ↔ MySQL
3. PHP (PHPMailer) ↔ SMTP ↔ Mailtrap (external)
4. Client requests static assets (CSS/JS/images) from Apache
c. Architectural patterns & principles
• Monolithic MVC-ish pattern: PHP scripts act as controllers and views; includes/ contains reusable modules.
• Shared configuration in includes/config.php.
• Separation of concerns: static assets segregated in css/, js/, images/.
d. Key technologies
• Server-side: PHP 7.x+, Apache 2.x, MySQL 5.x
• Front-end: Bootstrap 3, jQuery, DataTables, amCharts, CKEditor, various plugins
• Email: PHPMailer + Mailtrap
Detailed elements
• Component labels: “Browser,” “Apache + PHP,” “MySQL (srms),” “PHPMailer,” “Mailtrap SMTP.”
• Static asset folder as a sub‐component of Apache (css/, js/, images/).
• Includes/ modules (config.php, topbar.php, leftbar.php) as supporting libraries under the PHP block.
• Browser → Apache: HTTP GET/POST
• Apache → MySQL: DB queries
• Apache → Mailtrap: SMTP
• Browser → Apache: asset fetches (CSS, JS)
• Database schema at a high level (tables: admin, students, classes, subjects, combinations, results, notices).