This is a Quiz website for Topics such as :
- Computer Science
- Mathematics
- Sports
- History
- Animal
on mixed levels : hard, medium and easy difficulty.
The app is served from /quiz/, not from a domain root: it is reached as
https://sabo.sh/quiz/… through a Cloudflare worker that proxies requests
without rewriting the path, so the origin has to answer on /quiz/… itself.
base in vite.config.js is the single source of truth. It sets every emitted
asset URL, and App.jsx reads it back via import.meta.env.BASE_URL for the
router's basename, so the two cannot drift apart. Vite builds into
build/quiz while Netlify publishes build/, which puts the files on disk at
exactly the paths they are served from.
Routes inside the app are written without the prefix — <Link to="/sports">
resolves to /quiz/sports because the basename supplies the rest.
- ReactJS was used to create this project
- Question data is obtained form Open Trivia Database
- Uses token gernerated by opentdb to access new questions each time from its database.