How axelrizo/supahoot works
Based on your file tree and README, this project is a Vue 3 application bootstrapped via Vite—it’s essentially a frontend web application template that’s organized around a quiz or game (“supahoot”) theme. The project separates the UI (Vue components, router, providers) from the underlying business logic (quiz modules, services, utilities) and includes a testing suite with Vitest.
Project Type & Purpose
• The README confirms that this is a Vue 3 project using Vite, emphasizing development and build tools (hot-reload, lint, type-check, tests).
• The file structure, particularly under “src/lib/supahoot-web” and “src/lib/supahoot”, shows that it’s built around a quiz or interactive game system. The supahoot-web part handles the UI layer (views, router, providers for notifications and players) while supahoot contains quiz logic, domain models (e.g., quiz, question, player, answer), and services (avatar generation, quiz handling via Supabase).
Analyzing the File Structure
• Top-level files and configuration: Files like package.json, vite.config.ts, and various tsconfig files indicate the use of TypeScript, Vue 3, and Vite.
• Directories:
• /public: Likely holds static assets.
• /src/assets: Contains styling (main.css).
• /src/lib/supahoot-web: Contains the primary application UI components – App.vue (the root Vue component), main.ts (entry point), router configuration, providers (for notifications and player data), and various views for Admin and Player functionalities.
• /src/lib/supahoot: Contains domain-specific logic for quizzes and services. This includes modules related to quizzes (questions, answers, lobbies) and associated services (like avatar generation using Dicebear, and quiz services possibly interfacing with Supabase).
• /src/test: Contains support components and utilities for testing.