Skip to content

vasylpryimakdev/react-timed-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactQuiz

An interactive quiz application built with React and Vite, featuring timed multiple-choice questions with immediate feedback and comprehensive results analysis.

Table of Contents

✨ Features

  • ⏱️ Timed Questions: Each question has a countdown timer with auto-skip functionality
  • Instant Feedback: Immediate visual feedback on answer selection
  • 🔀 Randomized Answers: Answer order is shuffled for each question
  • 📊 Detailed Results: Comprehensive summary with performance metrics
  • 🎯 Responsive Design: Optimized for desktop and mobile devices
  • 🚀 Fast Development: Built with Vite for rapid development and optimized builds

🚀 Demo

Live Demo

📸 Screenshots

Welcome Screen

Start Game The initial screen where users can start the quiz

Question Interface

Answer State Question display with multiple-choice answers and timer

Results Summary

Game Over Final results screen with performance breakdown

🛠️ Tech Stack

  • Frontend Framework: React 19 with functional components and hooks
  • Build Tool: Vite for fast development and optimized production builds
  • Programming Language: JavaScript (ES6+) with JSX
  • Code Quality: ESLint for linting and code standards
  • Styling: CSS with modern responsive design principles

📋 Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn package manager

🚀 Installation

  1. Clone the repository

    git clone https://github.com/vasylpryimakdev/react-timed-quiz.git
    cd react-quiz
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev
  4. Open your browser

    Navigate to http://localhost:5173 to view the application.

📜 Available Scripts

Command Description
npm run dev Start the development server
npm run build Build the project for production
npm run lint Run ESLint for code quality checks
npm run preview Preview the production build locally

📁 Project Structure

react-quiz/
├── public/
│   └── screenshots/          # Application screenshots
├── src/
│   ├── assets/               # Static assets (images, icons)
│   ├── components/           # React components
│   │   ├── Answers.jsx       # Answer options component
│   │   ├── Header.jsx        # Application header
│   │   ├── Question.jsx      # Question display component
│   │   ├── QuestionTimer.jsx # Timer component
│   │   ├── Quiz.jsx          # Main quiz logic
│   │   └── Summary.jsx       # Results summary component
│   ├── questions.js          # Quiz questions data
│   ├── App.jsx               # Main application component
│   ├── main.jsx              # Application entry point
│   └── index.css             # Global styles
├── package.json              # Dependencies and scripts
├── vite.config.js            # Vite configuration
└── README.md                 # Project documentation

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

Interactive quiz application built with React 19 and Vite. Features timed multiple-choice questions, instant feedback, shuffled answers, and comprehensive results analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors