Skip to content

This web application is a Multiple-Choice Question (MCQ) quiz game built with React. It allows users to test their knowledge by answering a set of quiz questions. The app features user authentication, a responsive design, and a user-friendly interface. Users can log in, start the quiz, answer questions, and view their scores.

Notifications You must be signed in to change notification settings

Maykkkk/MCQ-game-app

Repository files navigation

MCQ Quiz Game Web App

License

App Screenshot

Table of Contents

Description

The MCQ Quiz Game Web App is a web application built with React, allowing users to test their knowledge by answering a set of Multiple-Choice Questions (MCQs). The app features user authentication, a responsive design, and a user-friendly interface. Users can log in, start the quiz, answer questions, and view their scores.

Features

  • User authentication: Users can log in and start the quiz.
  • Responsive design: The app adapts to different screen sizes through media queries.
  • Quiz functionality: Users can answer a series of quiz questions.
  • Scoring: The app keeps track of the user's score and displays it at the end.
  • API Integration: Questions are fetched from the Open Trivia Database via its API endpoint.

Demo

Live Demo

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/MCQ-Quiz-Game.git
  2. Navigate to the project directory:

    cd MCQ-Quiz-Game
  3. Install the required dependencies. This project uses npm as the package manager, so ensure you have Node.js and npm installed on your system. Then, run:

    npm install
  4. Start the app:

    npm start
  5. Open a web browser and navigate to http://localhost:3000.

    image

  6. Create an account, log in, and start the quiz. Enjoy testing your knowledge!

Usage

  1. Launch the app and you will be greeted with a login screen.

  2. Enter your name and click the "Login" button.

  3. After logging in, you will see the "Start Quiz" button.

  4. Click "Start Quiz" to begin the quiz.

  5. Answer the multiple-choice questions by selecting an option.

  6. After submitting your answer, you will receive feedback on your score.

  7. Continue to the next question and repeat the process.

  8. At the end of the quiz, you will see your final score.

  9. If you wish to restart, you can log out and log in again to start a new quiz.

Customization

You can customize the Quiz Game Web App to suit your needs. Here are a few customization options:

  • Add your own quiz questions and answers by modifying the question bank.
  • Adjust the visual styles by modifying the CSS.
  • Extend the functionality with additional features and components.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:

  1. Fork the repository on GitHub.
  2. Create a new branch with a descriptive name.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Create a pull request to the original repository.

License

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

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

This web application is a Multiple-Choice Question (MCQ) quiz game built with React. It allows users to test their knowledge by answering a set of quiz questions. The app features user authentication, a responsive design, and a user-friendly interface. Users can log in, start the quiz, answer questions, and view their scores.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published