Quizzer is a simple web application that offers a set of multiple-choice questions fetched from the Open Trivia Database API. The user can select answers and check if they are correct. The backend is built in Java using Spring Boot, and the frontend is a React-based user interface for easy interaction.
- Fetches 5 multiple-choice questions from the Open Trivia Database API.
- Provides a backend REST API to serve questions and check answers.
- Prevents users from inspecting the correct answers by hiding them in the backend.
- Offers a simple and intuitive user interface built with React.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Java Development Kit (JDK) installed on your machine (version 21).
-
Download the file at
/target/Quizzer.jar -
Run this jar file
java -jar Quizzer.jar
-
Access the application in your web browser at
http://localhost:8080.
The backend exposes the following REST endpoints:
GET /questions: Fetches 5 questions and possible answers.POST /checkanswers: Checks if provided answer is correct.
- Java
- Spring Boot
- Maven
- React