How abdelrahman-osama174/core-fit works
CoreFit is a backend API for a Flutter app and provider dashboard. Users authenticate, then manage wallets, shop from provider markets, or discover and reserve playground slots; providers also manage listings and review performance. Shared capabilities include notifications, reference content, and provider statistics. The graph preserves these documented product areas, but sampled source does not show most controller-to-service wiring, so those links are omitted rather than inferred. Source-index references support the few internal calls shown.
Main entry points: WalletService.java Wallet Payments · ReservationService.java Reservations · ProviderStatisticsService.java Provider Statistics · NotificationService.java Notifications
Components 20
Identity and Wallet
- Authentication
src/main/java/com/corefit/service/auth/AuthService.java - User Accounts
src/main/java/com/corefit/entity/auth/User.java - Wallet Payments
src/main/java/com/corefit/service/auth/WalletService.java - Payment Methods
src/main/java/com/corefit/enums/PaymentMethod.java
Sports Marketplace
- Market API
src/main/java/com/corefit/controller/market/MarketController.java - Market Listings
src/main/java/com/corefit/service/market/MarketService.java - Product Catalog
src/main/java/com/corefit/service/market/ProductService.java - Cart and Orders
src/main/java/com/corefit/service/market/OrderService.java - Market Data
src/main/java/com/corefit/entity/market/Market.java
Playground Booking
- Playground Listings
src/main/java/com/corefit/service/playground/PlaygroundService.java - Reservations
src/main/java/com/corefit/service/playground/ReservationService.java - Playground Data
src/main/java/com/corefit/entity/playground/Playground.java
Shared Platform
- Notifications
src/main/java/com/corefit/service/helper/NotificationService.java - Provider Statistics
src/main/java/com/corefit/service/helper/ProviderStatisticsService.java - API Responses
src/main/java/com/corefit/dto/response/GeneralResponse.java - Domain Errors
src/main/java/com/corefit/exceptions/GeneralException.java - City Data
src/main/java/com/corefit/entity/helper/City.java
Other components
- Mobile App / Dashboard
- Stripe
- Firebase Cloud Messaging
Connections 24
- Mobile App / Dashboard → Authentication: register or log in
- Mobile App / Dashboard → Wallet Payments: manage wallet
- Mobile App / Dashboard → Market API: use market APIs
- Mobile App / Dashboard → Reservations: book playground
- Mobile App / Dashboard → Provider Statistics: view provider stats
- Market API → Market Listings: delegates
src/main/java/com/corefit/controller/market/MarketController.java - Market Listings → Market Data: manages
src/main/java/com/corefit/service/market/MarketService.java - Product Catalog → Market Data: uses listings
src/main/java/com/corefit/service/market/ProductService.java - Cart and Orders → Wallet Payments: uses wallet payment
src/main/java/com/corefit/service/market/OrderService.java - Cart and Orders → Notifications: sends updates
src/main/java/com/corefit/service/market/OrderService.java - Cart and Orders → Payment Methods: checks method
src/main/java/com/corefit/service/market/OrderService.java - Wallet Payments → Stripe: creates and checks sessions
- Wallet Payments → User Accounts: updates balance
src/main/java/com/corefit/service/auth/WalletService.java - Wallet Payments → Notifications: notifies withdrawal
src/main/java/com/corefit/service/auth/WalletService.java - Playground Listings → Playground Data: manages listings
src/main/java/com/corefit/service/playground/PlaygroundService.java - Reservations → Playground Listings: loads playground
src/main/java/com/corefit/service/playground/ReservationService.java - Reservations → Playground Data: books slots
src/main/java/com/corefit/service/playground/ReservationService.java - Reservations → Wallet Payments: uses wallet payment
src/main/java/com/corefit/service/playground/ReservationService.java - Reservations → Notifications: sends updates
src/main/java/com/corefit/service/playground/ReservationService.java - Notifications → Firebase Cloud Messaging: sends push
src/main/java/com/corefit/service/helper/NotificationService.java - Authentication → User Accounts: creates and verifies
src/main/java/com/corefit/service/auth/AuthService.java - Provider Statistics → User Accounts: checks provider
src/main/java/com/corefit/service/helper/ProviderStatisticsService.java - Provider Statistics → Market Data: aggregates market activity
src/main/java/com/corefit/service/helper/ProviderStatisticsService.java - Provider Statistics → Playground Data: aggregates booking activity
src/main/java/com/corefit/service/helper/ProviderStatisticsService.java