How omartk1/algoquiz works
Project Type and Purpose
• AlgoQuiz is a single‐page, client‐side web application (a React.js front-end) designed to provide interactive programming quizzes.
• It does not include a custom back-end: instead it fetches questions from the Open Trivia DB API and falls back to a local JSON data file.
File Structure
• Top‐level files:
• package.json / package-lock.json (npm dependencies & scripts)
• webpack.config.js, postcss.config.js, tailwind.config.js (build & styling)
• public/ (static HTML, manifest)
• src/ (application source code)
• src/pages/: each URL route (Home, Quiz, Results, etc.)
• src/components/: reusable UI pieces (Header, Timer, Continue, etc.)
• src/services/: API‐calling modules (api-services.js) and question‐loading logic
• src/data/quizData.json: local fallback question set
• src/assets/: animations (Lottie JSON) and fonts
• src/styles/: CSS modules per component/page + global styles.css
README for Additional Insights
• Technology stack: React.js, React Router, Tailwind CSS, Lottie Animations, Webpack.
• External dependency: Open Trivia DB API.
• Key features: timed quizzes, dynamic difficulty, real-time feedback, result history (likely stored in browser localStorage).
Detail but Keep Clarity
• Layer (UI, services, data) and each external dependency.
• Main user flows (start quiz, fetch questions, submit answers, view history) are visible.