How alicanpar/app works
This is a fitness-tracking web application: users enter a protected dashboard to browse exercises, manage workouts, record and review progress, update their profile, and use an AI coach. The React application calls a FastAPI backend, which uses MongoDB for user and fitness data and contacts an external authentication service for session exchange. The excerpts confirm progress and exercise API calls, database access for sessions and progress, and the authentication-service request; other UI-to-API relationships are not shown and are left unasserted or marked unverified.
Main entry points: App.js Protected app · server.py Session auth · index.js React entry
Components 15
Web client
- React entry
frontend/src/index.js - Protected app
frontend/src/App.js
Fitness features
- Workout tracking
frontend/src/App.js - Progress tracking
frontend/src/App.js - Exercise catalog
frontend/src/App.js - AI coach
frontend/src/App.js - User profile
backend/server.py
API services
- Session auth
backend/server.py - Exercise API
backend/server.py - Progress API
backend/server.py - Workout API
backend/server.py - Coach API
backend/server.py
External systems
- MongoDB
- Auth service
Other components
- Fitness user
Connections 21
- Fitness user → React entry: opens app
frontend/src/index.js - React entry → Protected app: renders
frontend/src/index.js - Fitness user → Protected app: uses
- Protected app → Workout tracking: shows
frontend/src/App.js - Protected app → Progress tracking: shows
frontend/src/App.js - Protected app → Exercise catalog: shows
frontend/src/App.js - Protected app → AI coach: shows
frontend/src/App.js - Protected app → User profile: supports
- Protected app → Exercise API: requests
frontend/src/App.js - Protected app → Progress API: requests
frontend/src/App.js - Protected app → Workout API: requests
- Protected app → Coach API: requests
- Protected app → Session auth: uses
- Exercise API → Exercise catalog: provides data
- Progress API → Progress tracking: provides data
- Session auth → MongoDB: reads sessions
backend/server.py - Session auth → MongoDB: reads users
backend/server.py - Progress API → MongoDB: reads and writes
backend/server.py - Workout API → MongoDB: stores workouts
- User profile → MongoDB: updates profile
- Session auth → Auth service: requests session data
backend/server.py