How sagedko/fidospark_public works
Project type and purpose
• This is a single-page interactive onboarding web app built entirely in React (v18.2.0) and delivered via Vite.
• Its purpose is to guide and quiz new hires, store progress in localStorage, and provide an admin view for content oversight.
File structure
• Top level:
– public/
– src/ (assets/, components/, data/, App.jsx, main.jsx, CSS files)
– config files (tailwind.config.js, postcss.config.js, vite.config.js, eslint.config.js)
• src/components: modular UI views (Login, Welcome, LearningMode, QuizView, AdminDashboard, etc.)
• src/data: static content modules (learningData.js, departmentalLearningData.js, quizData.js, tailoredContentData.js)
• Build & tooling: Vite for dev server/build, Tailwind CSS, PostCSS, Framer Motion, ESLint
Extract additional insights from README
• No backend/API yet—data is static and persisted via localStorage
• UI routing is driven by App.jsx state logic
• Future scope: replace localStorage with real API and database, expand admin functionality
Main components
a. Browser / Client
– Index.html + Vite dev server or production bundle
– React runtime
b. Build Toolchain
– Vite (serving & bundling)
– Plugins: @vitejs/plugin-react
– PostCSS & Tailwind CSS processor
c. Frontend Modules
– App Shell (App.jsx + main.jsx)
– Component Layer (Login, Welcome, LearningMode, QuizView, UserScoresView, AdminDashboard, AnimatedBackground, CustomCursor, etc.)
– Asset Layer (static images, CSS)
– Data Layer (static JS data files under src/data)
d. Client-Side Persistence
– localStorage (user session, scores, progress)
e. (Future) Backend/API & Database
– Database (e.g., SQL/NoSQL store for users, content, scores)
Relationships & interactions
• Browser ←→ Vite Dev Server (HTTP)
• Browser loads index.html → main.jsx → mounts React App
• App.jsx orchestrates view state → renders child components
• Components read static data modules for content & quizzes
• Components read/write user state to localStorage
• AdminDashboard reads from localStorage (or in future from API)
• (Future) Components call API endpoints → persist/retrieve to/from database
Architectural patterns & principles
• Single-Page Application (SPA)
• Unidirectional data flow via React Hooks (useState/useEffect)
• Separation of concerns:
– UI (components) vs. content (data modules) vs. styling (Tailwind/PostCSS)
• Build-time vs. run-time separation: static bundling vs. dynamic rendering
• Future extensibility: clear adapter for replacing localStorage with HTTP API calls
Technologies & frameworks
• React, Vite, Tailwind CSS, PostCSS, Framer Motion
• JavaScript modules (ESM) for data
• localStorage for persistence
• ESLint for code quality