How salsabeelquraan/smart-qa works
Smart QA is a bilingual academic-governance platform for professors and students. The main workflow runs from browser pages through the REST API to PostgreSQL and back: professors manage course data and inspect quality, workload, exams, lectures, risk, and recommendations; students manage courses, grades, exams, and study plans. Server-side analysis services support those workflows, while authentication and optional AI and email integrations provide platform capabilities. The graph uses README-described connections and source-index references; unsampled page and route internals are not inferred.
Main entry points: professor.js Professor API · app.js Express application · api.js API client · student.js Student API
Components 22
Browser experience
- API client
public/js/api.js - Course management
public/js/pages/professor-courses.js - Professor analysis pages
public/js/pages - Student pages
public/js/pages
API platform
- Express application
server/app.js - Authentication
server/routes/auth.js - Auth middleware
server/middleware/auth.js - Professor API
server/routes/professor.js - Student API
server/routes/student.js - Translation API
server/routes/i18n.js - Email delivery
server/services/mailer.js
Professor workflows
- Course workload and grades
server/services/courseLoad.js - Lecture analysis
server/services/lectureAnalyzer.js - Exam analysis
server/services/examQuality.js - Course insights
server/services/courseInsights.js - Risk prediction
server/services/riskPrediction.js - Recommendations
server/services/recommender.js - AI review
server/services/aiReview.js
Student workflows
- Achievements
server/services/badges.js
Other components
- Browser user
- PostgreSQL
- SMTP service
Connections 31
- Browser user → API client: uses
- API client → Express application: REST requests
- Express application → Authentication: mounts
server/app.js - Express application → Professor API: mounts
server/app.js - Express application → Student API: mounts
server/app.js - Express application → Translation API: mounts
server/app.js - Express application → Auth middleware: guards routes
server/app.js - Authentication → Auth middleware: uses
server/routes/auth.js - Professor API → Course workload and grades: uses
server/routes/professor.js - Professor API → Lecture analysis: uses
server/routes/professor.js - Professor API → Exam analysis: uses
server/routes/professor.js - Professor API → Course insights: uses
server/routes/professor.js - Professor API → Risk prediction: uses
server/routes/professor.js - Professor API → Recommendations: uses
server/routes/professor.js - Professor API → AI review: uses
server/routes/professor.js - Student API → Achievements: refreshes
server/routes/student.js - Professor API → PostgreSQL: reads and writes
server/routes/professor.js - Student API → PostgreSQL: reads and writes
server/routes/student.js - Auth middleware → PostgreSQL: checks revocation
server/middleware/auth.js - Professor analysis pages → API client: requests data
- Course management → API client: requests data
- Student pages → API client: requests data
- Express application → Email delivery: uses
server/app.js - Authentication → Email delivery: sends account email
server/routes/auth.js - Email delivery → SMTP service: sends mail
- Professor API → Email delivery: sends notifications
server/routes/professor.js - Express application → PostgreSQL: health check
server/app.js - Translation API → PostgreSQL: uses cache
server/routes/i18n.js - Professor API → Professor analysis pages: serves analysis data
- Student API → Student pages: serves student data
- AI review → Browser user: calls Claude API
server/services/aiReview.js