Skip to content

testofschool/daily-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daily Quiz - AI & Coding

A web-based quiz application to stay sharp on AI, Machine Learning, and coding topics. Features daily quizzes generated from scraped AI news and a comprehensive topic-based question bank.

Features

  • Daily Quiz: Questions generated from latest AI news scraped from Reddit, Hacker News, ArXiv, and YouTube
  • Topic Quiz: Choose from 12+ topics (Python, ML, DL, LLM, CNN, RNN, Transformer, YOLO, AWS, Infra, etc.)
  • 20-second Timer: Each question has a countdown timer with color transitions (green → yellow → red)
  • Difficulty Levels: Beginner, Intermediate, Advanced
  • History & Review: Track all past quiz attempts with detailed answer reviews and source links
  • Keyboard Shortcuts: Press 1-4 or A-D to select answers, Enter to confirm
  • Local LLM: Uses Ollama + Qwen2.5:3b for question generation (no cloud API needed)

Tech Stack

  • Frontend: React + Vite + TypeScript + Tailwind CSS + Zustand
  • Backend: FastAPI + SQLAlchemy + SQLite
  • Scraping: Playwright (headless Chromium)
  • LLM: Ollama + Qwen2.5:3b

Setup

Prerequisites

  • Python 3.10+
  • Node.js 18+
  • Ollama (optional, for daily quiz generation)

Backend

cd backend
python -m venv ../.venv
source ../.venv/bin/activate
pip install -r requirements.txt
playwright install chromium
python seed/seed_db.py  # Seed 120 questions
uvicorn app.main:app --reload --port 8000

Frontend

cd frontend
npm install
npm run dev

Ollama (for daily quiz)

# Install Ollama from https://ollama.com
ollama pull qwen2.5:3b

Open http://localhost:5173 and start quizzing!

Usage

  1. Topic Quiz: Select a topic and difficulty → answer questions within 20 seconds → review results
  2. Daily Quiz: Auto-generated from latest AI news → run scraper first via the UI
  3. History: Review all past attempts with explanations and source links

About

Daily AI & Coding Quiz App - React + FastAPI + Playwright + Ollama

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors