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.
- 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.
-
Clone the repository:
git clone https://github.com/your-username/MCQ-Quiz-Game.git
-
Navigate to the project directory:
cd MCQ-Quiz-Game
-
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
-
Start the app:
npm start
-
Open a web browser and navigate to
http://localhost:3000
. -
Create an account, log in, and start the quiz. Enjoy testing your knowledge!
-
Launch the app and you will be greeted with a login screen.
-
Enter your name and click the "Login" button.
-
After logging in, you will see the "Start Quiz" button.
-
Click "Start Quiz" to begin the quiz.
-
Answer the multiple-choice questions by selecting an option.
-
After submitting your answer, you will receive feedback on your score.
-
Continue to the next question and repeat the process.
-
At the end of the quiz, you will see your final score.
-
If you wish to restart, you can log out and log in again to start a new quiz.
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.
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name.
- Make your changes and commit them.
- Push your branch to your forked repository.
- Create a pull request to the original repository.
This project is licensed under the MIT License - see the LICENSE file for details.
This project was bootstrapped with Create React App.
In the project directory, you can run:
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
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.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify