Skip to content

Hussainzz/meta-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

META QUIZ ๐Ÿ”ฎ

Installation

> npm install

Env

rename .env.example to .env and populate your API Key Quiz API Key from https://quizapi.io/

QUIZ_API_KEY=xxxxx

Start Server

> npm start

Meta Quiz Listening on 8006

In New Terminal, Start Meta Quiz

> npm run meta-quiz

> [email protected] meta-quiz
> node quizApp.js


            โ–’โ–ˆโ–€โ–„โ–€โ–ˆ โ–ˆโ–€โ–€ โ–€โ–€โ–ˆโ–€โ–€ โ–ˆโ–€โ–€โ–ˆ ใ€€ โ–’โ–ˆโ–€โ–€โ–ˆ โ–’โ–ˆโ–‘โ–’โ–ˆ โ–€โ–ˆโ–€ โ–’โ–ˆโ–€โ–€โ–€โ–ˆ ใ€€ 
            โ–’โ–ˆโ–’โ–ˆโ–’โ–ˆ โ–ˆโ–€โ–€ โ–‘โ–‘โ–ˆโ–‘โ–‘ โ–ˆโ–„โ–„โ–ˆ ใ€€ โ–’โ–ˆโ–‘โ–’โ–ˆ โ–’โ–ˆโ–‘โ–’โ–ˆ โ–’โ–ˆโ–‘ โ–‘โ–„โ–„โ–„โ–€โ–€ ใ€€ 
            โ–’โ–ˆโ–‘โ–‘โ–’โ–ˆ โ–€โ–€โ–€ โ–‘โ–‘โ–€โ–‘โ–‘ โ–€โ–‘โ–‘โ–€ ใ€€ โ–‘โ–€โ–€โ–ˆโ–„ โ–‘โ–€โ–„โ–„โ–€ โ–„โ–ˆโ–„ โ–’โ–ˆโ–„โ–„โ–„โ–ˆ ใ€€
        
? Enter your name โ€บ 

Run Tests

> npm test
> [email protected] 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