How yogi-verma/js-frontend works
DevCrux is a React learning and interview-practice frontend. Users enter through routed pages, then study JavaScript lessons or practice interview, frontend, output-based, and coding questions; authenticated progress and profile features are backed by a remote API. The graph includes the shared user/theme layers and browser-based compiler. Source excerpts establish the main route, context, and several API relationships; unsampled feature internals are represented conservatively, without inferring connections between them.
Main entry points: App.jsx Routes and Providers · authService.js API Client · UserContext.jsx User Context · JavascriptInterviewQuestions.jsx Interview Questions
Components 24
Application Shell
- Routes and Providers
src/App.jsx - Home and Dashboard
src/components/Home.jsx
Learning and Practice
- JavaScript Lessons
src/components/Lessons/JavascriptLessons/JavascriptLessons.jsx - Lesson Detail
src/components/Lessons/JavascriptLessons/JavascriptLessonsByName/JavascriptLessonsByName.jsx - Learning Modules
src/components/Modules/Modules.jsx - Interview Questions
src/components/JavascriptInterviewQuestions/JavascriptInterviewQuestions.jsx - Frontend Questions
src/components/FrontendQuestionsBundle/FrontendQuestionBundle.jsx - Output Questions
src/components/OutputBased/OutputBased.jsx - Coding Workspace
src/components/JavascriptMachineCoding/CodingWorkspace.jsx - JavaScript Compiler
src/utils/JavascriptCompiler/JavascriptCompiler.jsx - Daily Quiz
src/components/DailyQuiz/DailyQuiz.jsx
Identity and Profile
- User Profile
src/components/UserProfile/UserProfile.jsx - Profile Sections
src/components/UserProfile/DisplayEmail/DisplayEmail.jsx - Streak and Analytics
src/components/UserProfile/Streak/Streak.jsx - User Context
src/utils/UserContext/UserContext.jsx - Email Settings
src/components/UserProfile/DisplayEmail/DisplayEmail.jsx
Shared Runtime
- API Client
src/utils/BackendCalls/authService.js - Protected Routes
src/utils/ProtectedRoute/ProtectedRoute.jsx - Theme Context
src/utils/WhiteDarkMode/ThemeContext.jsx - Theme Hook
src/utils/WhiteDarkMode/useTheme.js - Navigation Header
src/components/Header/Header.jsx - Loading Views
src/utils/SkeletonLoader/SkeletonLoader.jsx
Other components
- Learner
- Backend API
Connections 32
- Learner → Routes and Providers: opens
- Routes and Providers → Home and Dashboard: routes to
src/App.jsx - Routes and Providers → JavaScript Lessons: routes to
src/App.jsx - Routes and Providers → Lesson Detail: routes to
src/App.jsx - Routes and Providers → JavaScript Compiler: routes to
src/App.jsx - Routes and Providers → Interview Questions: routes to
src/App.jsx - Routes and Providers → Coding Workspace: routes to
src/App.jsx - Routes and Providers → Output Questions: routes to
src/App.jsx - Routes and Providers → User Profile: routes to
src/App.jsx - Routes and Providers → Frontend Questions: routes to
src/App.jsx - Routes and Providers → Protected Routes: guards routes
src/App.jsx - Routes and Providers → User Context: provides context
src/App.jsx - Routes and Providers → Theme Context: provides context
src/App.jsx - User Context → API Client: requests user data
src/utils/UserContext/UserContext.jsx - API Client → Backend API: calls endpoints
src/utils/BackendCalls/authService.js - Interview Questions → API Client: loads questions and progress
src/components/JavascriptInterviewQuestions/JavascriptInterviewQuestions.jsx - Frontend Questions → API Client: loads questions and progress
src/components/FrontendQuestionsBundle/FrontendQuestionBundle.jsx - JavaScript Lessons → User Context: reads learning state
src/components/Lessons/JavascriptLessons/JavascriptLessons.jsx - Lesson Detail → User Context: reads learning state
src/components/Lessons/JavascriptLessons/JavascriptLessonsByName/JavascriptLessonsByName.jsx - Learning Modules → User Context: reads learning state
src/components/Modules/Modules.jsx - Coding Workspace → API Client: loads coding data
src/components/JavascriptMachineCoding/CodingWorkspace.jsx - Daily Quiz → API Client: loads quiz data
src/components/DailyQuiz/DailyQuiz.jsx - User Profile → Profile Sections: renders sections
src/components/UserProfile/UserProfile.jsx - User Profile → Streak and Analytics: renders progress
src/components/UserProfile/UserProfile.jsx - Profile Sections → API Client: updates account
src/components/UserProfile/DisplayEmail/DisplayEmail.jsx - Streak and Analytics → API Client: loads streak data
src/components/UserProfile/Streak/Streak.jsx - Theme Context → Theme Hook: exposes theme
src/utils/WhiteDarkMode/ThemeContext.jsx - Navigation Header → User Context: reads user state
src/components/Header/Header.jsx - Navigation Header → API Client: starts sign-in
src/components/Header/Header.jsx - Loading Views → Theme Hook: reads theme
src/utils/SkeletonLoader/SkeletonLoader.jsx - Interview Questions → Loading Views: shows loading view
src/components/JavascriptInterviewQuestions/JavascriptInterviewQuestions.jsx - Frontend Questions → Loading Views: shows loading view
src/components/FrontendQuestionsBundle/FrontendQuestionBundle.jsx