Skip to content

pritesh-4/DevLore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒธ DevLore

A modern quiz platform built with React, Vite, Axios, and Open Trivia DB API that allows users to test their knowledge across multiple categories, track performance, and review past quiz attempts.


โœจ Overview

DevLore is a dynamic quiz application designed to provide a smooth and engaging learning experience. Instead of relying on hardcoded questions, quizzes are fetched in real time from an external API, allowing users to explore a wide range of topics and difficulty levels.

The project focuses on practical React concepts including:

  • Component-based architecture
  • State management with Hooks
  • API integration with Axios
  • React Router navigation
  • Local Storage persistence
  • Dynamic rendering
  • Performance tracking and analytics

๐Ÿš€ Live Demo

๐Ÿ”— Website: [(https://devlore-ebon.vercel.app/)]

๐Ÿ”— GitHub Repository: [(https://github.com/pritesh-4/DevLore)]


๐Ÿ“ธ Screenshots

Home Page

Home Page


Quiz Setup

Quiz setup


Quiz Interface

Quiz


Results Page

Result


Dashboard Analytics

Dashboard


๐ŸŽฏ Features

Quiz Configuration

  • Choose quiz category
  • Select difficulty level
  • Choose number of questions
  • Dynamic question generation

Quiz Experience

  • Randomized answer positions
  • Real-time timer
  • Instant answer selection
  • Score tracking

Results

  • Final score calculation
  • Accuracy percentage
  • Completion time tracking
  • Save result functionality

Dashboard

  • Total quizzes completed
  • Highest score achieved
  • Total time spent
  • Recent quiz activity
  • Average performance analytics

Data Persistence

  • Quiz history stored using Local Storage
  • Progress remains available after page refresh
  • Saved results accessible from dashboard

๐Ÿ›  Tech Stack

Frontend

  • React
  • React Router DOM
  • Vite
  • CSS

API

  • Open Trivia DB API

Storage

  • Browser Local Storage

HTTP Client

  • Axios

๐Ÿ“‚ Project Structure

src/
โ”‚
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ Navbar.jsx
โ”‚   โ”œโ”€โ”€ Footer.jsx
โ”‚   โ”œโ”€โ”€ Hero.jsx
โ”‚   โ””โ”€โ”€ Statsection.jsx
โ”‚   โ”œโ”€โ”€ StatCard.jsx
โ”‚   โ””โ”€โ”€ Activity.jsx
โ”‚
โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ Home.jsx
โ”‚   โ”œโ”€โ”€ QuizSetup.jsx
โ”‚   โ”œโ”€โ”€ Quiz.jsx
โ”‚   โ”œโ”€โ”€ Result.jsx
โ”‚   โ””โ”€โ”€ Dashboard,jsx
โ”‚
โ”œโ”€โ”€ App.jsx
โ”œโ”€โ”€ main.jsx
โ”‚
โ””โ”€โ”€ assets/

โš™๏ธ Installation

Clone the repository:

git clone https://github.com/pritesh-4/DevLore.git

Navigate into the project:

cd DevLore

Install dependencies:

npm install

Start development server:

npm run dev

Build for production:

npm run build

๐Ÿ“š Concepts Practiced

This project helped me learn and apply:

  • React Components
  • Props
  • useState
  • useEffect
  • Conditional Rendering
  • Lists and Mapping
  • API Fetching
  • Axios
  • React Router
  • Local Storage
  • State Management
  • Dashboard Design
  • Error Handling

๐Ÿ”ฎ Future Improvements

Planned features for future versions:

  • User authentication
  • Global leaderboard
  • Dark mode
  • User profiles
  • Quiz categories analytics
  • Difficulty-based statistics
  • Backend database integration
  • Achievement system
  • Streak tracking

๐Ÿง  Challenges Faced

During development, several challenges were solved:

  • Dynamic API integration
  • Handling API failures
  • Random answer shuffling
  • Accurate score calculation
  • Preserving quiz history
  • Managing navigation state
  • Preventing duplicate result saves

These challenges helped strengthen understanding of React application development and debugging.


๐Ÿ‘จโ€๐Ÿ’ป Author

Pritesh Jena

Built as a learning project to explore modern React development, API integration, and frontend application architecture.


โญ Support

If you found this project interesting, consider giving the repository a star.

About

Interactive learning platform featuring customizable quizzes, performance tracking, and progress analytics.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors