A basic quiz engine using NodeJS, ExpressJS & Postgres. Includes some basic functional tests with Jest. Project is dockerised so requires docker and docker-compose to run!
Some functional tests are present although due to time constraints I didn't create unit tests for the class functions. Also uses standard to check code style.
$ npm install -D
$ npm test
ADMIN_PASSWORD # the password for the admin portal
POSTGRES_PASSWORD
SESSION_SECRET
$ ./scripts/setup.sh
There is a script built in which generates a report of all the quizzes completed & how many people scored within each 10% increment. This is passed to mail to send an email to the specified address
$ ./scripts/report.sh <email address>