> npm install
rename .env.example
to .env
and populate your API Key
Quiz API Key from https://quizapi.io/
QUIZ_API_KEY=xxxxx
> npm start
Meta Quiz Listening on 8006
> npm run meta-quiz
> meta-quiz@1.0.0 meta-quiz
> node quizApp.js
▒█▀▄▀█ █▀▀ ▀▀█▀▀ █▀▀█ ▒█▀▀█ ▒█░▒█ ▀█▀ ▒█▀▀▀█
▒█▒█▒█ █▀▀ ░░█░░ █▄▄█ ▒█░▒█ ▒█░▒█ ▒█░ ░▄▄▄▀▀
▒█░░▒█ ▀▀▀ ░░▀░░ ▀░░▀ ░▀▀█▄ ░▀▄▄▀ ▄█▄ ▒█▄▄▄█
? Enter your name ›
> npm test
> meta-quiz@1.0.0 test
> ./node_modules/jest/bin/jest.js ./tests/
PASS tests/quiz.test.js
POST /check-performance
✓ should increase difficulty level from Easy to Medium (24 ms)
✓ should decrease difficulty level from Hard to Medium (2 ms)
✓ should decrease difficulty level from Medium to Easy (1 ms)
✓ should increase difficulty level from Medium to Hard (1 ms)
Test Suites: 1 passed, 1 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: 0.297 s, estimated 1 s