Giter Club home page Giter Club logo

quiz-app's Introduction

Quiz App

This is a quiz app that allows users to configure the quiz according to their preferences, track scores, and display responsive designs.

Features

  • Configure the quiz by choosing difficulty and quiz type (True/False or Multiple Choice).
  • Play the quiz and answer questions.
  • Track scores and display them in a high scores section.
  • Responsive design for various devices.

Quiz Categories

Users can choose from a variety of quiz categories, including:

  1. General Knowledge
  2. Entertainment: Books
  3. Entertainment: Film
  4. Entertainment: Music
  5. Entertainment: Musicals & Theatres
  6. Entertainment: Television
  7. Entertainment: Video Games
  8. Entertainment: Board Games
  9. Science & Nature
  10. Science: Computers
  11. Science: Mathematics
  12. Mythology
  13. Sports
  14. Geography
  15. History
  16. Politics
  17. Art
  18. Celebrities
  19. Animals
  20. Vehicles
  21. Entertainment: Comics
  22. Science: Gadgets
  23. Entertainment: Japanese Anime & Manga
  24. Entertainment: Cartoon & Animations

Users can select their preferred category to customize their quiz experience.

Project Structure

The project directory structure is organized as follows:

  • layouts/QuizLayout.js: The layout component for the quiz pages.
  • pages/quiz/Configuration.js: Configure quiz difficulty and type.
  • pages/quiz/FinaleScore.js: Display the final score and allow saving.
  • pages/quiz/Play.js: Play the quiz and answer questions.
  • pages/quiz/HighScores.js: Display high scores.
  • pages/Home.js: Home page of the app.
  • App.js: Main component of the app.
  • index.css: Global styling.
  • index.js: Entry point of the app.

Setup

  1. Clone the repository using git clone https://github.com/Moslihbadr/quiz-app.git.
  2. Navigate to the project directory: cd quiz-app.
  3. Install dependencies: npm install.
  4. Start the development server: npm start.

Technologies Used

  • React: Front-end library for building user interfaces.
  • React Router: Library for routing and navigation in a React app.
  • Bootstrap: CSS framework for responsive design.

API Integration

This app is powered by the OpenTDB API.

Contributing

Contributions are welcome! If you find a bug or have an enhancement suggestion, please open an issue or create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.