How ishitapathunda/dsa-learning-web works
DSA Learning Web combines topic-based DSA study, browser-based C++ practice, and user progress features. The main flow is browsing learning material and problems, running or submitting code, receiving an evaluation, and using successful submissions to update progress and achievements. The graph includes the client, REST API, evaluation, and progress/gamification stages. Some feature links are documented in the README; unsampled implementation details are not asserted beyond those documented relationships.
Main entry points: App.jsx App routing · app.ts REST application · submissions.service.ts Submission workflow · client.js API client
Components 27
Learning experience
- Topic learning
src/pages/DataStructures.jsx - Algorithm lessons
src/pages/Algorithms.jsx - Problem browser
src/pages/Problems.jsx - Problem workspace
src/pages/ProblemDetail.jsx
Web client
- App routing
src/App.jsx - Session state
src/context/AuthContext.jsx - API client
src/api/client.js - Problem API
src/api/problems.js - Submission API
src/api/submissions.js
API and domain
- REST application
server/src/app.ts - Authentication routes
server/src/routes/auth.routes.ts - Authentication handler
server/src/controllers/auth.controller.ts - Account operations
server/src/services/auth.service.ts - Problem routes
server/src/routes/problems.routes.ts - Problem handler
server/src/controllers/problems.controller.ts - Problem catalog
server/src/services/problems.service.ts - Submission routes
server/src/routes/submissions.routes.ts - Submission handler
server/src/controllers/submissions.controller.ts - Submission workflow
server/src/services/submissions.service.ts - SQLite database
Code evaluation
- C++ judge
server/src/execution/judge.ts - Docker runner
server/src/execution/dockerRunner.ts
Progress and rewards
- Progress tracking
server/src/services/progress.service.ts - Achievement badges
server/src/services/badges.service.ts - Leaderboard
server/src/services/leaderboard.service.ts - Progress analytics
server/src/services/analytics.service.ts
Other components
- Learner
Connections 30
- Learner → App routing: uses
README.md - App routing → Topic learning: routes to
src/App.jsx - App routing → Algorithm lessons: routes to
src/App.jsx - App routing → Problem browser: routes to
src/App.jsx - App routing → Problem workspace: routes to
src/App.jsx - Problem browser → Problem API: requests problems
src/pages/Problems.jsx - Problem workspace → Problem API: requests problems
src/pages/ProblemDetail.jsx - Problem workspace → Submission API: sends code
src/pages/ProblemDetail.jsx - App routing → Session state: provides session
src/App.jsx - Session state → API client: calls
src/context/AuthContext.jsx - Problem API → API client: uses
src/api/problems.js - Submission API → API client: uses
src/api/submissions.js - API client → REST application: sends REST requests
src/api/client.js - REST application → Authentication routes: mounts
server/src/app.ts - REST application → Problem routes: mounts
server/src/app.ts - REST application → Submission routes: mounts
server/src/app.ts - Authentication routes → Authentication handler: dispatches
server/src/routes/auth.routes.ts - Authentication handler → Account operations: calls
server/src/controllers/auth.controller.ts - Problem routes → Problem handler: dispatches
server/src/routes/problems.routes.ts - Problem handler → Problem catalog: calls
server/src/controllers/problems.controller.ts - Submission routes → Submission handler: dispatches
server/src/routes/submissions.routes.ts - Submission handler → Submission workflow: calls
server/src/controllers/submissions.controller.ts - Submission workflow → C++ judge: evaluates code
server/src/services/submissions.service.ts - C++ judge → Docker runner: runs in container
- Submission workflow → Progress tracking: updates progress
server/src/services/submissions.service.ts - Submission workflow → Achievement badges: checks badges
server/src/services/submissions.service.ts - Account operations → SQLite database: reads and writes users
server/src/services/auth.service.ts - Problem catalog → SQLite database: reads problems
- Learner → Leaderboard: views rankings
README.md - Learner → Progress analytics: views activity
README.md