How apoorv7791/dsaapp works
AlgoTrainer is a mobile app for learning data structures and algorithms, with topic lessons, visualizations, and learning settings. Its backend provides authenticated APIs for progress, profiles, goals, streaks, and difficulty, backed by Supabase. The tree and excerpts establish the backend route/controller flow and local progress-storage helpers; most app-screen wiring and the app-to-backend connection were not shown, so those relationships are omitted.
Main entry points: supabase.js Supabase Client · server.js API Server · user.js User Routes · learningProgressStorage.ts Progress Storage
Components 27
Learning Content
- Topic Catalog
AlgoTrainer/lib/learningTopics.ts - Lesson Registry
AlgoTrainer/lib/lessonRegistry.ts - Data Structures
AlgoTrainer/app/DataStructures - Algorithms
AlgoTrainer/app/Algorithms - Advanced Topics
AlgoTrainer/app/Advanced - Visualizations
AlgoTrainer/app/DataVisual - Algorithm Visuals
AlgoTrainer/app/AlgoVisual - Advanced Visuals
AlgoTrainer/app/AdvanceVisual - Lesson Screen
AlgoTrainer/components/LessonScreen/LessonScreen.tsx
Mobile Experience
- Home
AlgoTrainer/app/(tabs)/index.tsx - Progress View
AlgoTrainer/app/Learning/progress.tsx - Settings
AlgoTrainer/app/(tabs)/settings.tsx - Sign In and Signup
AlgoTrainer/app/Registration - Backend API Client
AlgoTrainer/lib/backendApi.ts
API Backend
- API Server
backend/server.js - Authentication
backend/middleware/authenticate.js - Progress Routes
backend/routes/progress.js - User Routes
backend/routes/user.js - Progress Controller
backend/controller/progressController.js - User Controller
backend/controller/userController.js - Difficulty Controller
backend/controller/difficultyController.js - Streak Controller
backend/controller/streakController.js
Persistence
- Progress Storage
AlgoTrainer/lib/learningProgressStorage.ts - Device Storage
AlgoTrainer/lib/storage.ts - Supabase Client
backend/db/supabase.js
Other components
- Learner
- API Consumer
Connections 18
- Learner → Home: opens app
- Lesson Registry → Topic Catalog: uses topic IDs
AlgoTrainer/lib/lessonRegistry.ts - Progress Storage → Topic Catalog: normalizes topics
AlgoTrainer/lib/learningProgressStorage.ts - Progress Storage → Device Storage: reads and writes
AlgoTrainer/lib/learningProgressStorage.ts - API Consumer → API Server: sends API requests
- API Server → Authentication: authenticates API
backend/server.js - API Server → Progress Routes: mounts routes
backend/server.js - API Server → User Routes: mounts routes
backend/server.js - API Server → Supabase Client: checks database
backend/server.js - Authentication → Supabase Client: verifies token
backend/middleware/authenticate.js - Progress Routes → Progress Controller: dispatches requests
backend/routes/progress.js - User Routes → User Controller: dispatches requests
backend/routes/user.js - User Routes → Difficulty Controller: dispatches requests
backend/routes/user.js - User Routes → Streak Controller: dispatches requests
backend/routes/user.js - Progress Controller → Supabase Client: reads and writes
backend/controller/progressController.js - User Controller → Supabase Client: reads and writes
backend/controller/userController.js - Difficulty Controller → Supabase Client: reads and writes
backend/controller/difficultyController.js - Streak Controller → Supabase Client: reads and writes
backend/controller/streakController.js