How nluu175/virtual-gym works
Virtual Gym is a React dashboard backed by Django for viewing statistics from an AR game. The principal workflow is sign-in, browse and filter recorded sessions, open a session, and inspect game-performance, mobility, or progress-comparison views. Separate dashboard capabilities include user administration/approval and profile management. The graph includes the visible client routing and component composition; Django views, URLs, and models are present in the tree, but their implementation was not sampled, so backend relationships are shown only where an excerpt supports them or marked unverified.
Main entry points: App.js App router · views.py Django API · SessionDetails.js Session detail tabs · FunctionalMobility.js Functional mobility
Components 27
Dashboard client
- App router
client/src/App.js - Session dashboard
client/src/components/Dashboard/Dashboard.js - Session filters
client/src/components/Dashboard/SearchBar.js - Session list
client/src/components/Dashboard/SessionList.js - Session item
client/src/components/Dashboard/SessionItem.js - App header
client/src/components/Template/Header.js - Token storage
client/src/utils/localStorage.js
Session analytics
- Session detail tabs
client/src/components/Session/SessionDetails.js - Game performance
client/src/components/Session/GamePerformancePage/GamePerformance.js - Functional mobility
client/src/components/Session/FunctionalMobilityPage/FunctionalMobility.js - Joint speed metric
client/src/components/Session/FunctionalMobilityPage/AverageJointSpeedMetric.js - Individual joint metric
client/src/components/Session/FunctionalMobilityPage/IndividualJointSpeedMetric.js - Space coverage metric
client/src/components/Session/FunctionalMobilityPage/SpaceCoverageMetric.js - Progress comparison
client/src/components/Session/CompareProgressPage/CompareProgress.js
Accounts and administration
- Authentication tabs
client/src/components/Auth/Auth.js - Login
client/src/components/Auth/Login.js - Registration
client/src/components/Auth/SignUp.js - Validation messages
client/src/components/Auth/ValidationLogs.js - User profile
client/src/components/Template/UserProfile.js - User notifications
client/src/components/Notification/Notification.js - User approval table
client/src/components/Notification/UserTable.js
Django backend
- Django API
server/virtualgym/server/views.py - API routes
server/virtualgym/server/urls.py - Application models
server/virtualgym/server/models.py - Mobility parser
server/virtualgym/server/mobility_parser.py - Server services
server/virtualgym/server/services.py
Other components
- Dashboard user
Connections 30
- Dashboard user → App router: opens
client/src/App.js - App router → Token storage: reads token
client/src/App.js - App router → Authentication tabs: routes unauthenticated
client/src/App.js - App router → Session dashboard: routes home
client/src/App.js - App router → Session detail tabs: routes session
client/src/App.js - App router → App header: renders
client/src/App.js - App router → User profile: routes profile
client/src/App.js - App router → User notifications: routes notifications
client/src/App.js - Authentication tabs → Login: renders
client/src/components/Auth/Auth.js - Authentication tabs → Registration: renders
client/src/components/Auth/Auth.js - Login → Token storage: stores token
client/src/components/Auth/Login.js - Session dashboard → Session list: renders
client/src/components/Dashboard/Dashboard.js - Session list → Session filters: renders
client/src/components/Dashboard/SessionList.js - Session list → Session item: renders
client/src/components/Dashboard/SessionList.js - Session item → Session detail tabs: opens details
- Session detail tabs → Game performance: renders tab
client/src/components/Session/SessionDetails.js - Session detail tabs → Functional mobility: renders tab
client/src/components/Session/SessionDetails.js - Session detail tabs → Progress comparison: renders tab
client/src/components/Session/SessionDetails.js - Functional mobility → Joint speed metric: renders
client/src/components/Session/FunctionalMobilityPage/FunctionalMobility.js - Functional mobility → Individual joint metric: renders
client/src/components/Session/FunctionalMobilityPage/FunctionalMobility.js - Functional mobility → Space coverage metric: renders
client/src/components/Session/FunctionalMobilityPage/FunctionalMobility.js - User profile → Validation messages: renders
client/src/components/Template/UserProfile.js - User notifications → User approval table: renders
client/src/components/Notification/Notification.js - User approval table → Django API: updates approvals
client/src/components/Notification/UserTable.js - User profile → Django API: changes password
client/src/components/Template/UserProfile.js - Session dashboard → Django API: loads sessions
- Django API → API routes: uses routes
- Django API → Application models: accesses records
- Django API → Mobility parser: parses mobility
- Django API → Server services: delegates work