Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Quiz App

A modern quiz application built with React, Vite, and Tailwind CSS. The application fetches trivia questions from the Open Trivia Database API and provides an interactive quiz experience with authentication, timer, progress tracking, and quiz resume functionality.

✨ Features

  • 🔐 Simple Login Authentication
  • 🌐 Fetch Questions from Open Trivia DB API
  • 📝 One Question Per Page
  • ⚡ Automatic Next Question After Answer Selection
  • 📊 Quiz Progress Tracking
  • ⏱️ Countdown Timer
  • 🏆 Quiz Result Summary
  • 💾 Resume Quiz Using LocalStorage
  • 📱 Responsive Design
  • 🎨 Modern UI with Tailwind CSS

🛠️ Tech Stack

  • React
  • Vite
  • React Router DOM
  • Axios
  • Tailwind CSS
  • LocalStorage API
  • Open Trivia DB API

📂 Project Structure

src
├── assets
├── pages
│   ├── LoginPage.jsx
│   ├── QuizPage.jsx
│   └── ResultPage.jsx
│
├── components
│   ├── Timer.jsx
│   ├── ProgressBar.jsx
│   └── QuestionCard.jsx
│
├── services
│   └── triviaApi.js
│
├── hooks
├── utils
├── context
│
├── App.jsx
└── main.jsx

🚀 Installation

Clone repository:

git clone https://github.com/your-username/quiz-app.git

Move into project directory:

cd quiz-app

Install dependencies:

npm install

Run development server:

npm run dev

Open:

http://localhost:5173

📖 Usage

  1. Login using any valid username and password.
  2. Start the quiz.
  3. Answer questions one by one.
  4. Monitor your progress and remaining time.
  5. View your final score after completing the quiz or when the timer expires.
  6. Resume your quiz if the browser is accidentally closed.

🌐 API Reference

Open Trivia Database

Endpoint:

https://opentdb.com/api.php?amount=10&type=multiple

Documentation:

https://opentdb.com/


📸 Screenshots

Login Page

Add screenshot here

Quiz Page

Add screenshot here

Result Page

Add screenshot here


🎥 Demo Video

Loom Recording:

Add your Loom link here


👨‍💻 Author

Dimas Brotowali

GitHub: https://github.com/your-github-username


📄 License

This project was created for Frontend Developer Internship Assessment purposes.

react-quiz-app

About

Interactive quiz application built with React, Vite, Tailwind CSS, and Open Trivia DB API.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages