How madihaj14/algolearn works
Project type and purpose
• From the README and file tree, AlgoLearn is a full-stack, single-page React application (built with Vite and Tailwind CSS) that visualizes Data Structures & Algorithms.
• It integrates authentication, persistent user progress (via Supabase), and external APIs (GPT, LeetCode/GFG) to drive its interactive practice and documentation pages.
File structure
• Top-level:
• package.json, vite.config.ts, tsconfig.* → front-end build/config
• index.html, src/main.tsx → SPA entry point
• postcss.config.js, tailwind.config.js, eslint.config.js → styling & linting
• src/components & src/pages → React component hierarchy (UI layer)
• src/lib/algorithms → pure algorithm implementations (visualizer back-end logic)
• src/lib/supabase.ts → data‐access layer for Supabase (auth & persistence)
• src/context & src/store → application state management (theme, auth, progress)
• src/data → static content and TypeScript types
README for additional insights
• Front-end: React + Tailwind, Vite
• Back-end: Supabase (instead of self-hosted Django/Flask as stubbed in the README), PostgreSQL
• API integrations: GPT, LeetCode, GFG
Detail
• Context and Store modules separately to highlight auth and theme flows.
• How algorithm functions (e.g., BFS, mergeSort) feed step data into the Visualizer component.