This project idea was discovered on: Scrimba.
This project makes use of the Open Trivia Database API. It allows a user to retrieve random questions based on the user selection of category, difficulty and type.
The default number of questions is 5 but you can increase to 20 or decrease to 1. The user can select one answer for each given questions, and then validate if their chosen answers are correct. At the end the number of correctly answered questions will be shown to the user.
- Clone the repo to your local machine
- Navigate to the appropriate folder
- Install all the required packages with
npm install
- Run with
npm start