How kenishregmi/workshop-final-project works
Project type and purpose
• This is a single-page application (SPA) built with React and Vite.
• It serves as a client-side educational gaming portal, hosting minigames (FlagGuesser, MathBlaster, etc.), puzzles, and quizzes.
• Vite provides the development server, build pipeline, HMR (Hot Module Replacement), and plugin integration for React via Babel or SWC.
File structure
• Top-level:
• README.md, package.json / lock, .gitignore, vite.config.js, eslint.config.js
• index.html (SPA shell)
• public/ (static assets)
• src/:
• main.jsx — entrypoint that mounts React into index.html
• App.jsx / App.css — root component, defines routes or tab selection
• components/ — shared UI (Navbar, Footer, Home, Aboutus, Contact, Question, Quizes, Games)
• Games/, Puzzles/, Quiz/ — feature modules, each with its component and CSS
• Build configs: vite.config.js (Vite plugins), eslint.config.js
README for additional insights
• Confirms use of @vitejs/plugin-react (Babel) or plugin-react-swc (SWC) for fast refresh
• No backend or external services—pure frontend
Detailed capture of architectural elements
• Break the React app into:
• Entrypoint (main.jsx)
• Core Layout (App.jsx: Navbar, Footer, Router)
• Feature modules (Games, Puzzles, Quiz)
• Shared components (Question, Home, Contact, Aboutus)
• Vite’s plugin chain: plugin-react/Babel or plugin-react-swc → transform JSX → HMR API
• Static asset delivery from public/ and CSS injections