How siddhidanekar03/rv_gym_project works
RVFitness is a gym-management product with a public-facing site and member portal backed by a FastAPI service. A visitor enrolls or signs in through the React app and API client; authenticated members and staff use the same service for memberships, billing, attendance, workouts, profiles, and leaderboards. Owner and front-desk tools add branch operations and administration. The graph preserves those domain areas and the database/auth layers; several endpoint and UI relationships are documented by the source index rather than sampled implementation excerpts.
Main entry points: api.js API client · database.py Relational database · membership_service.py Membership service · attendance_service.py Attendance service
Components 30
Website and portal
- Public site
frontend/src/App.jsx - Enrollment and sign-in
frontend/src/components/EnrollModal.jsx - Member portal
frontend/src/components/MemberDashboard.jsx - Owner and desk tools
frontend/src/components/GymOwnerPanel.jsx - API client
frontend/src/api.js - Leaderboard view
frontend/src/components/Leaderboard.jsx
API and access
- API application
backend/app/main.py - Authentication
backend/app/api/v1/endpoints/auth.py - Enrollment
backend/app/api/v1/endpoints/enrollment.py - Attendance endpoints
backend/app/api/v1/endpoints/attendance.py - Billing endpoints
backend/app/api/v1/endpoints/billing.py - Session and security
backend/app/core/auth.py - Rate limiting
backend/app/core/rate_limit.py
Gym operations
- Membership service
backend/app/services/membership_service.py - Billing service
backend/app/services/billing_service.py - Attendance service
backend/app/services/attendance_service.py - Trainer management
backend/app/services/trainer_service.py - Announcements
backend/app/services/announcement_service.py
Fitness engagement
- Workout tracking
backend/app/services/workout_service.py - Performance tracking
backend/app/services/performance_service.py - Leaderboard service
backend/app/services/leaderboard_service.py
Data foundation
- Organizations and branches
backend/app/models/organization.py - Users and roles
backend/app/models/user.py - Plans and enrollments
backend/app/models/membership.py - Invoices and payments
backend/app/models/billing.py - Attendance records
backend/app/models/attendance.py - Leaderboard ledger
backend/app/models/leaderboard.py - Relational database
backend/app/core/database.py
Other components
- Visitor or member
- Redis service
Connections 33
- Visitor or member → Public site: browses
frontend/src/App.jsx - Public site → API client: requests session
frontend/src/App.jsx - Enrollment and sign-in → API client: submits enrollment
frontend/src/components/EnrollModal.jsx - Member portal → API client: loads portal data
frontend/src/components/MemberDashboard.jsx - Owner and desk tools → API client: manages gym
frontend/src/components/GymOwnerPanel.jsx - Leaderboard view → API client: loads standings
- API client → API application: sends requests
- API application → Authentication: routes API
backend/app/main.py - Authentication → Session and security: creates sessions
backend/app/api/v1/endpoints/auth.py - Authentication → Attendance service: records attendance
backend/app/api/v1/endpoints/auth.py - Enrollment → Membership service: handles enrollment
- Enrollment → Billing service: requests billing
backend/app/api/v1/endpoints/enrollment.py - Attendance endpoints → Attendance service: handles check-in
- Billing endpoints → Billing service: handles billing
- Membership service → Billing service: uses billing
backend/app/services/membership_service.py - Attendance service → Leaderboard service: awards points
backend/app/services/attendance_service.py - Workout tracking → Leaderboard service: awards workout points
backend/app/services/workout_service.py - Leaderboard service → Leaderboard ledger: writes ledger
backend/app/services/leaderboard_service.py - Leaderboard service → Users and roles: queries members
backend/app/services/leaderboard_service.py - Membership service → Plans and enrollments: reads and writes
backend/app/services/membership_service.py - Billing service → Invoices and payments: reads and writes
backend/app/services/billing_service.py - Attendance service → Attendance records: records check-ins
backend/app/services/attendance_service.py - Attendance service → Users and roles: updates member
backend/app/services/attendance_service.py - Membership service → Organizations and branches: checks branch
backend/app/services/membership_service.py - Relational database → Redis service: may back limiting
- API application → Rate limiting: applies limits
backend/app/main.py - Rate limiting → Redis service: uses optionally
backend/app/core/rate_limit.py - Session and security → Users and roles: loads account
backend/app/core/auth.py - Session and security → Relational database: persists sessions
backend/app/core/auth.py - Membership service → Relational database: uses sessions
- Announcements → Relational database: uses sessions
- Trainer management → Relational database: uses sessions
- Performance tracking → Relational database: uses sessions