How dtstimdjumaniyazov/gym works
FitEvolution is a course and training platform with web and mobile clients backed by a Django API. Learners can discover courses, view lessons, enroll, and manage their profiles; trainers have course-creation and trainer-facing pages. The mobile client additionally implements login, registration, social sign-in, and Telegram login. The graph includes documented client routing and sampled client/API-layer relationships; backend feature areas are represented from the source tree, but their internal call paths are not shown in the excerpts.
Main entry points: App.jsx Web routes · api.js Mobile API client · baseQuery.js Web API layer · models.py Courses and catalog
Components 20
Web client
- Web routes
frontend/src/App.jsx - Main layout
frontend/src/layouts/MainLayout.jsx - Course pages
frontend/src/pages/CourseDetail.jsx - Course creation
frontend/src/pages/CourseCreate.jsx - Profile
frontend/src/pages/Profile.jsx - Web API layer
frontend/src/app/api/baseQuery.js
Mobile client
- Mobile screens
mobile/app/(tabs)/index.jsx - Mobile authentication
mobile/src/store/authSlice.js - Course and category hooks
mobile/src/hooks/useCourses.js - Mobile API client
mobile/src/services/api.js - Token storage
mobile/src/services/storage.js
Learning platform
- Courses and catalog
backend/courses/models.py - Training schedules
backend/training/models.py - Enrollments and progress
backend/enrollments/models.py - Payments
backend/payments/views.py - Course media
backend/storage/views.py
Identity and support
- Accounts and trainers
backend/users/models.py - Notifications
backend/notifications/services.py
Other components
- Learner or trainer
- Telegram
Connections 20
- Learner or trainer → Web routes: uses
- Web routes → Main layout: routes through
frontend/src/App.jsx - Web routes → Course pages: routes to
frontend/src/App.jsx - Web routes → Course creation: routes to
frontend/src/App.jsx - Web routes → Profile: routes to
frontend/src/App.jsx - Course creation → Web API layer: uses
frontend/src/pages/CourseCreate.jsx - Course pages → Web API layer: requests data
- Profile → Web API layer: requests data
- Learner or trainer → Mobile screens: uses
- Mobile screens → Course and category hooks: loads catalog
mobile/app/(tabs)/index.jsx - Course and category hooks → Mobile API client: requests data
mobile/src/hooks/useCourses.js - Mobile API client → Token storage: reads tokens
mobile/src/services/api.js - Mobile authentication → Mobile API client: authenticates via
mobile/src/store/authSlice.js - Mobile authentication → Token storage: stores tokens
mobile/src/store/authSlice.js - Mobile API client → Courses and catalog: HTTP API
- Web API layer → Courses and catalog: HTTP API
- Courses and catalog → Training schedules: signals reference
backend/courses/signals.py - Enrollments and progress → Courses and catalog: signals reference
backend/enrollments/signals.py - Notifications → Accounts and trainers: selects staff users
backend/notifications/services.py - Notifications → Telegram: sends messages
backend/notifications/services.py