How heytoki/acit3495-group18 works
This is a student-grade entry and results application. Users register or sign in through either web app, then enter validated grades; a background worker aggregates grades by course, and the results app displays those aggregates. Authentication is delegated to a separate service, while the entry, aggregation, and results stages use MySQL and MongoDB. The graph reflects relationships visible in the excerpts; deployment and gateway wiring are not shown.
Main entry points: src/app.js Grade entry app · src/app.js Results app · auth/app.py Authentication service · analytics/app.py Grade aggregation
Components 12
Grade entry
- Grade entry app
enter-data/src/app.js - Grade validation
enter-data/src/validate.js - Token verification
enter-data/src/jwt.js - MySQL pool
enter-data/src/db.js - Grade database
mysql/init.sql
Identity
- Authentication service
auth/app.py
Analytics
- Grade aggregation
analytics/app.py - Analytics database
mongo/init.js
Results
- Results app
show-results/src/app.js - Token verification
show-results/src/jwt.js - Mongo data access
show-results/src/db.js
Other components
- User
Connections 14
- User → Grade entry app: submits grades
enter-data/src/app.js - Grade entry app → Grade validation: validates input
enter-data/src/app.js - Grade entry app → Token verification: checks tokens
enter-data/src/app.js - Grade entry app → Authentication service: requests login
enter-data/src/app.js - Grade entry app → Grade database: writes grades
enter-data/src/app.js - Grade entry app → MySQL pool: uses pool
enter-data/src/server.js - Authentication service → User: issues tokens
- Grade aggregation → Grade database: reads grades
analytics/app.py - Grade aggregation → Analytics database: upserts aggregates
analytics/app.py - User → Results app: views results
show-results/src/app.js - Results app → Token verification: checks tokens
show-results/src/app.js - Results app → Authentication service: requests login
show-results/src/app.js - Results app → Mongo data access: fetches results
show-results/src/app.js - Mongo data access → Analytics database: reads aggregates
show-results/src/db.js