Skip to content

A React-based web application that allows users to take trivia quizzes by selecting categories, difficulty levels, and the number of questions. It features timed questions, score tracking, and dynamic feedback using data from the Open Trivia Database API. The app includes a responsive design and an engaging user interface.

Notifications You must be signed in to change notification settings

bvhadra/REACT-JavaScript-Trivia-Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trivia Quiz App

Overview

The Trivia Quiz App is a dynamic and engaging web-based quiz application designed to test users' knowledge on various topics. Users can select categories, difficulty levels, and the number of questions they wish to attempt, making the quiz experience customizable and fun. The app keeps track of scores and provides immediate feedback, enhancing the learning experience. Built with React, the app leverages the Open Trivia Database API to fetch questions, ensuring a diverse and up-to-date quiz experience.

Features

Customizable Quiz Experience

  • Category Selection: Users can choose from a variety of categories such as General Knowledge, Science, History, and more.
  • Difficulty Levels: Users can select the difficulty of the quiz questions (easy, medium, or hard).
  • Number of Questions: Users can choose how many questions they want to answer (5, 10, 15, or 20).

Interactive Quiz Interface

  • Immediate Feedback: Users receive instant feedback on their answers, with correct and incorrect answers highlighted.
  • Score Tracking: The app tracks the user's score throughout the quiz.
  • Timer: Each question is timed, adding a layer of challenge and excitement.
  • Game Over Screen: At the end of the quiz, users see their final score and have options to restart or quit the game.

User-Friendly Design

  • Responsive Layout: The app is designed to be responsive and works seamlessly on both desktop and mobile devices.
  • Intuitive Navigation: Simple and clear navigation allows users to start the quiz quickly and easily.

Tech Stack

Frontend

  • React: The core of the application, providing a component-based structure that is both scalable and maintainable.
  • JavaScript (ES6+): Modern JavaScript features are used throughout the codebase for cleaner and more efficient code.
  • HTML5 & CSS3: Fundamental technologies for structuring and styling the web application.
  • Fetch API: Used to interact with the Open Trivia Database API for fetching quiz questions.

Additional Libraries

  • Open Trivia Database API: Provides the trivia questions used in the quiz.
  • Custom CSS: Styling is done through custom CSS to ensure a unique and visually appealing interface.

Skills Demonstrated

React Development

  • Component-Based Architecture: Demonstrates the ability to create reusable and maintainable components.
  • State Management: Manages complex state interactions across the application, including handling user input and API data.
  • Lifecycle Methods and Hooks: Utilizes React lifecycle methods and hooks such as useEffect and useState to manage component lifecycles and side effects.

API Integration

  • Fetch API: Shows proficiency in making asynchronous requests to external APIs and handling responses effectively.
  • Data Handling: Processes and integrates API data dynamically into the application, ensuring real-time updates and interactivity.

User Interface Design

  • Responsive Design: Ensures the application is usable across a range of devices and screen sizes.
  • CSS Styling: Applies modern CSS techniques to create a visually appealing and user-friendly interface.

Problem-Solving and Debugging

  • Error Handling: Implements error handling for API requests and user interactions.
  • Debugging: Utilizes debugging techniques to identify and fix issues within the application.

Benefits

  • Engaging Learning Tool: Provides an interactive and fun way to learn new information and test knowledge.
  • Customizable Experience: Allows users to tailor the quiz to their interests and skill levels.
  • Immediate Feedback: Enhances learning by providing instant feedback on answers.
  • Skill Demonstration: Showcases a range of technical skills, from frontend development to API integration and user experience design.

By working on the Trivia Quiz App, I have demonstrated proficiency in React, effective API integration, responsive web design, problem-solving, and user-centric design. This project showcases my technical capabilities and commitment to creating high-quality, user-focused applications.

Deployment

The app is deployed on Netlify. You can view the live version here:

About

A React-based web application that allows users to take trivia quizzes by selecting categories, difficulty levels, and the number of questions. It features timed questions, score tracking, and dynamic feedback using data from the Open Trivia Database API. The app includes a responsive design and an engaging user interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published