A fun and interactive web-based quiz application with gamification features. This app allows users to take a quiz, answer questions, and receive scores with immediate feedback on their answers. The application includes animations, sound effects, and a modern, sleek design.
This quiz app features:
- Multiple Choice Questions: The user is presented with a series of questions and multiple options.
- Gamified Scoring System: Correct answers earn +4 points, while incorrect answers deduct -1 point.
- Interactive Animations: The app uses
framer-motionto provide smooth and visually appealing animations. - Sound Feedback: Sounds are played for correct and incorrect answers.
- Results Page: A results page is displayed after quiz completion with a score summary.
- Timer Functionality: Each question has a timer to challenge users to answer within a set time frame, adding urgency and enhancing the gamification aspect.
- React Router: For handling navigation between pages (Home, Quiz, Results).
To enhance the gamified experience, the quiz includes a timer for each question. The timer counts down from 30 seconds for each question. When the time runs out:
- The current question is marked as unanswered, and the app moves to the next question.
- The user is notified if they failed to answer within the time limit.
- This feature helps create a sense of urgency and challenges users to think quickly.
The timer is visually displayed at the top of each quiz question page, providing real-time feedback to users on how much time they have left.
- Frontend: React.js
- State Management: Zustand
- Animations:
framer-motion - Routing:
react-router-dom - Sound: Custom sounds for correct and incorrect answers.
- Styling: Tailwind CSS
Check out the live version of the app:
Quiz App
Here are some screenshots of the app:
Watch the demo video here:
If the video is not playing, you can watch it on Google Drive:
Follow these steps to get the project up and running on your local machine:
git clone https://github.com/developerdev2007/quiz-app.git
cd quiz-appRun the following command to install the required dependencies:
npm installRun the development server with:
npm run devThe app should now be running at http://localhost:5173/ (if using Vite).
To create an optimized production build, run:
npm run buildTo serve the built application, use:
npm run previewIf the quiz data is fetched from an API, create a .env file and add your API endpoint:
VITE_API_URL=https://your-api-endpoint.com
Make sure to replace the URL with the actual API endpoint.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Feel free to fork the repository and submit a pull request with improvements.
For any questions or support, feel free to reach out at [email protected]




