Node v8.11.2^ NPM v5.8.1^ or Yarn v1.7.0^
- clone this github repo
- cd into adp-entrance/quiz-adp-entrance
- run npm install OR yarn install
- run npm start OR yarn start
- ENJOY!
Create a client-side quiz app based on the provided requirements, data and views.
- clone this repo as a starter
- use only HTML/CSS/JS
- use any frameworks or libraries of your choice (ex: JQuery, React, Bootstrap)
Quiz data can be found in src/quiz.json. This content will be loaded when a user starts a quiz.
For every question there is one correct answer (with a value of true
) and three incorrect answers with a value of false
. The content
field contains a possible answer.
{
quizzes: [{
title: 'Quiz 1',
questions: [{
question: 'Question 1?'
answers: [{
content: 'Answer 1.',
value: false // wrong answer
}, {
content: 'Answer 2.',
value: true // correct answer
}]
}]
}]
}
Feel free to be creative and style your views. As a bare minimum, please create the following three views:
The view presented when the user starts the app.
- load either quiz 1 or quiz 2 on click
While the user is selecting their answers:
- display all 3 questions with possible answers
- provide feedback when a user clicks on an answer. Consider styling correct or wrong answers with green or red button colors
- show the next question after a time delay of 2 seconds
- track the number of correct answers in the top right corner
When the user has finished answering all three questions:
- display the final score
- show a "pass" message if more than 50% of the answers were correct, show a "fail" message otherwise
- push your finished app to Github
- provide your username and repo to an instructor
Good luck!