How vansh-jyotishi/cs-study-desk works
CS Study Desk is a student learning website: students browse curated courses and resources, take course tests, and track scores after logging in. Its main flow runs from the browser through the API client to backend search or course features; authenticated learning activity is saved as student progress. Distinct branches include account and preference management, generated courses, and document-aware study chat. The README documents several capabilities whose implementation was not sampled; those links are shown only where the README supports them.
Main entry points: api.js API client · app.js Web app · ChatController.java Chat endpoints · CourseGenerator.java Course generation
Components 21
Student website
- Web app
frontend/js/app.js - Course catalog
frontend/js/courses.js - Resource search
frontend/js/search.js - Chat interface
frontend/js/chat.js - API client
frontend/js/api.js
Accounts and progress
- Account service
backend/src/main/java/com/studentlearning/platform/auth/AuthService.java - Signed tokens
backend/src/main/java/com/studentlearning/platform/auth/TokenService.java - Student records
backend/src/main/java/com/studentlearning/platform/user/User.java - Test progress
backend/src/main/java/com/studentlearning/platform/progress/ProgressService.java - Search preferences
backend/src/main/java/com/studentlearning/platform/preferences/PreferencesService.java
Learning services
- Search orchestration
backend/src/main/java/com/studentlearning/platform/search/SearchService.java - Search sources
backend/src/main/java/com/studentlearning/platform/search/SearchSources.java - Course generation
backend/src/main/java/com/studentlearning/platform/generated/CourseGenerator.java - Generated courses
backend/src/main/java/com/studentlearning/platform/generated/GeneratedCourseStore.java
Study assistant
- Chat endpoints
backend/src/main/java/com/studentlearning/platform/chat/ChatController.java - Chat context
backend/src/main/java/com/studentlearning/platform/chat/ChatService.java - Uploaded documents
backend/src/main/java/com/studentlearning/platform/chat/DocumentStore.java - Text extraction
backend/src/main/java/com/studentlearning/platform/chat/TextExtractor.java - Groq model API
backend/src/main/java/com/studentlearning/platform/chat/GroqClient.java
Other components
- Student
- Public resource APIs
Connections 30
- Student → Web app: uses
README.md - Web app → Course catalog: renders courses
README.md - Web app → Resource search: routes search
README.md - Web app → Chat interface: routes chat
README.md - Web app → API client: uses API
- Resource search → API client: requests search
- Chat interface → API client: requests chat
- API client → Account service: calls API
README.md - API client → Search orchestration: calls API
README.md - API client → Test progress: calls API
README.md - API client → Search preferences: calls API
README.md - API client → Course generation: requests generation
README.md - API client → Chat endpoints: calls API
README.md - Account service → Signed tokens: issues and verifies
backend/src/main/java/com/studentlearning/platform/auth/AuthService.java - Account service → Student records: reads and writes
backend/src/main/java/com/studentlearning/platform/auth/AuthService.java - Test progress → Student records: stores scores
backend/src/main/java/com/studentlearning/platform/progress/ProgressService.java - Search preferences → Student records: stores preferences
backend/src/main/java/com/studentlearning/platform/preferences/PreferencesService.java - Search preferences → Search orchestration: uses result types
backend/src/main/java/com/studentlearning/platform/preferences/PreferencesService.java - Search orchestration → Search sources: dispatches searches
backend/src/main/java/com/studentlearning/platform/search/SearchService.java - Search sources → Public resource APIs: fetches resources
README.md - Course generation → Groq model API: requests outline
README.md - Course generation → Search orchestration: finds lesson links
README.md - Course generation → Generated courses: saves courses
README.md - Generated courses → Course catalog: lists generated courses
README.md - Chat endpoints → Account service: checks identity
backend/src/main/java/com/studentlearning/platform/chat/ChatController.java - Chat endpoints → Chat context: submits questions
backend/src/main/java/com/studentlearning/platform/chat/ChatController.java - Chat endpoints → Uploaded documents: manages uploads
backend/src/main/java/com/studentlearning/platform/chat/ChatController.java - Chat endpoints → Text extraction: extracts file text
backend/src/main/java/com/studentlearning/platform/chat/ChatController.java - Chat context → Uploaded documents: retrieves excerpts
backend/src/main/java/com/studentlearning/platform/chat/ChatService.java - Chat context → Groq model API: sends conversation
backend/src/main/java/com/studentlearning/platform/chat/ChatService.java