How awsaimlkenyaug/exam-simulator-js works
Exam Simulator is a browser-based study and timed-exam application. A user selects a mode and uploads a VCE or PDF; the application delegates parsing and exam state to the simulator, then presents questions, feedback, timing, and results. Separate VCE-to-PDF conversion and downloadable exam-result PDFs are also documented. The sampled source supports the principal calls shown; some UI markup and PDF-result generation details are only partially excerpted, so their internal wiring is not expanded.
Main entry points: app.js Application controller · vce-to-pdf.js VCE-to-PDF converter · exam-simulator.js Exam simulator · index.html Web interface
Components 13
Exam experience
- Web interface
index.html - Application controller
js/app.js
Exam runtime
- Exam simulator
js/exam-simulator.js - Study feedback
js/exam-simulator.js - Exam timing
js/exam-simulator.js - Review and scoring
js/exam-simulator.js
Question ingestion
- VCE parser
js/vce-parser.js - PDF parser
js/pdf-parser.js
PDF exports
- VCE-to-PDF converter
js/vce-to-pdf.js
Other components
- Learner
- PDF.js
- jsPDF
- Browser download
Connections 14
- Learner → Web interface: uses
README.md - Web interface → Application controller: drives
js/app.js - Application controller → Exam simulator: loads and starts
js/app.js - Exam simulator → VCE parser: parses VCE
js/exam-simulator.js - Exam simulator → PDF parser: parses PDF
js/exam-simulator.js - PDF parser → PDF.js: extracts text
js/pdf-parser.js - Application controller → Study feedback: renders feedback
js/app.js - Application controller → Exam timing: updates timer
js/app.js - Application controller → Review and scoring: shows results
js/app.js - Application controller → VCE-to-PDF converter: requests PDF
js/app.js - VCE-to-PDF converter → VCE parser: parses VCE
js/vce-to-pdf.js - VCE-to-PDF converter → jsPDF: generates document
js/vce-to-pdf.js - Application controller → VCE-to-PDF converter: downloads results PDF
js/app.js - VCE-to-PDF converter → Browser download: triggers download
js/vce-to-pdf.js