Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏆Quizton

Netlify Status

Description

This is a Quiz website for Topics such as :

  • Computer Science
  • Mathematics
  • Sports
  • History
  • Animal

on mixed levels : hard, medium and easy difficulty.

View Project

Click Here

Mount path

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.

Technology used

ReactHTML5CSS3

Details

  1. ReactJS was used to create this project
  2. Question data is obtained form Open Trivia Database
  3. Uses token gernerated by opentdb to access new questions each time from its database.

About

React app for CS fundamental trivia questions

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages