How akash-arjun-reddy/oliva-mad works
Oliva Clinic is a Flutter mobile app backed by a FastAPI clinic, commerce, and loyalty backend. The main user journey is authentication followed by browsing services and booking or managing appointments; separate backend routes support consultations, shopping, payments, and rewards. The repository also contains a second, separately structured meeting/doctor backend under vedio/backend. The Flutter Dart source is absent from the supplied tree, and several backend modules were not sampled, so some documented feature branches have no asserted internal call flow.
Main entry points: main.py Clinic API · auth_service.py Authentication logic · appointment_controller.py Appointment routes · shopify_controller.py Shop and orders
Components 28
API entry
- Clinic API
BackendMobileAPP/main.py - Configuration
BackendMobileAPP/config/settings.py - Database sessions
BackendMobileAPP/database/connection.py
Identity and users
- Authentication routes
BackendMobileAPP/controller/auth_controller.py - Authentication logic
BackendMobileAPP/service/auth_service.py - JWT security
BackendMobileAPP/security/jwt.py - User records
BackendMobileAPP/models/user.py
Clinic workflows
- Appointment routes
BackendMobileAPP/controller/appointment_controller.py - Appointment logic
BackendMobileAPP/service/appointment_service.py - Appointment persistence
BackendMobileAPP/repository/appointment_repo.py - Clinic services
BackendMobileAPP/controller/service_controller.py - Consultation routes
BackendMobileAPP/controller/consultation_controller.py - Consultation logic
BackendMobileAPP/service/consultation_service.py - Email and calendar
BackendMobileAPP/utils/email_utils.py
Commerce and loyalty
- Shop and orders
BackendMobileAPP/shopify_controller.py - Shopify integration
BackendMobileAPP/shopify_service.py - Order records
BackendMobileAPP/models/order_models.py - Rewards routes
BackendMobileAPP/controller/rewards_controller.py - Rewards engine
BackendMobileAPP/service/rewards_engine_service.py - Rewards persistence
BackendMobileAPP/repository/rewards_repository.py
Meeting backend
- Video backend API
vedio/backend/main.py - Meeting routes
vedio/backend/app/controllers/meeting_controller.py - Meeting service
vedio/backend/app/services/meeting_service.py - Meeting persistence
vedio/backend/app/repositories/meeting_repository.py - Doctor routes
vedio/backend/app/controllers/doctor_controller.py - Meeting email
vedio/backend/app/services/email_service.py
Other components
- Mobile user
- Email provider
Connections 30
- Mobile user → Clinic API: uses API
README.md - Clinic API → Authentication routes: registers routes
BackendMobileAPP/main.py - Clinic API → Appointment routes: registers routes
BackendMobileAPP/main.py - Clinic API → Clinic services: registers routes
BackendMobileAPP/main.py - Clinic API → Consultation routes: registers routes
BackendMobileAPP/main.py - Clinic API → Shop and orders: registers routes
BackendMobileAPP/main.py - Clinic API → Rewards routes: registers routes
BackendMobileAPP/main.py - Clinic API → Database sessions: creates tables
BackendMobileAPP/main.py - Authentication routes → Authentication logic: calls
BackendMobileAPP/controller/auth_controller.py - Authentication logic → User records: queries users
BackendMobileAPP/service/auth_service.py - Authentication logic → Configuration: reads settings
BackendMobileAPP/service/auth_service.py - Authentication logic → JWT security: uses tokens
- Authentication logic → Mobile user: validates Google token
- Appointment routes → Appointment logic: books appointments
BackendMobileAPP/controller/appointment_controller.py - Appointment routes → Authentication logic: sends OTP
BackendMobileAPP/controller/appointment_controller.py - Appointment logic → Appointment persistence: persists bookings
- Appointment routes → Database sessions: opens sessions
BackendMobileAPP/controller/appointment_controller.py - Consultation routes → Consultation logic: delegates
BackendMobileAPP/controller/consultation_controller.py - Consultation logic → Email and calendar: sends email
- Email and calendar → Email provider: sends messages
- Shop and orders → Shopify integration: creates Shopify orders
BackendMobileAPP/shopify_controller.py - Shop and orders → Order records: writes orders
BackendMobileAPP/shopify_controller.py - Rewards routes → Rewards engine: calls engine
BackendMobileAPP/controller/rewards_controller.py - Rewards engine → Rewards persistence: reads and updates
BackendMobileAPP/service/rewards_engine_service.py - Video backend API → Meeting routes: registers routes
vedio/backend/main.py - Video backend API → Doctor routes: registers routes
vedio/backend/main.py - Meeting routes → Meeting service: calls service
vedio/backend/app/controllers/meeting_controller.py - Meeting service → Meeting persistence: uses repository
- Meeting routes → Meeting email: sends email
- Meeting email → Email provider: delivers email