How soen490-sportsapp/sportsapp works
Sporta is a mobile sports-event community: users register and build profiles, discover nearby events, join games, and coordinate through posts and messaging. The repository separates the React Native client from backend services for identity, events and social content, chat, notifications, and file storage. The README describes these capabilities; sampled service interfaces and client authentication code clarify some responsibilities. Several backend implementations and cross-service routes were not shown, so their connections are omitted or marked unverified. Some SOURCE INDEX modules are absent from the supplied tree and cannot be placed precisely.
Main entry points: authService.ts Authentication client · EventService.java Event lifecycle and search · app Mobile app · auth Login and signup
Components 21
Mobile client
- Mobile app
ClientApp/app - Login and signup
ClientApp/app/auth - Event discovery
ClientApp/app/(tabs)/home - Event details
ClientApp/app/events - Profiles and friends
ClientApp/app/(tabs)/profile - Chat screens
ClientApp/app/(tabs)/chats/index.tsx - Posts and creation
ClientApp/components/Posts - Authentication client
ClientApp/services/authService.ts - HTTP client
ClientApp/services/axiosInstance.ts - Token management
ClientApp/services/tokenService.ts
Identity and community
- User and friend service
Microservices/user-service/src/main/java/app/sportahub/userservice/service/user/UserService.java - Friend recommendations
Microservices/user-service/src/main/java/app/sportahub/userservice/service/recommendation/FriendRecommendationService.java - Account authentication
Microservices/user-service/src/main/java/app/sportahub/userservice/service/auth/AuthService.java
Events and social
- Event lifecycle and search
Microservices/event-service/src/main/java/app/sportahub/eventservice/service/event/EventService.java - Event posts and comments
Microservices/event-service/src/main/java/app/sportahub/eventservice/service/social/PostService.java
Communication and media
- Chat service
Microservices/messaging-service/src/main/java/app/sportahub/messagingservice/service/MessagingService.java - Notifications
Microservices/notification-service/src/main/java/app/sportahub/notificationservice/service/notification/NotificationService.java - Object storage
Microservices/storage-service/src/main/java/app/sportahub/storageservice/controller/ObjectStorageController.java - API gateway
Microservices/gateway/src/main/java/app/sportahub/gateway/routes/Routes.java - Email delivery
Microservices/email-service/src/main/java/app/sportahub/emailservice/service/EmailService.java
Other components
- Sporta user
Connections 20
- Sporta user → Mobile app: uses
- Mobile app → Login and signup: offers account access
- Login and signup → Authentication client: authenticates through
- Authentication client → HTTP client: sends requests
ClientApp/services/authService.ts - Authentication client → Token management: saves and refreshes
ClientApp/services/authService.ts - Sporta user → Event discovery: discovers games
- Event discovery → Event lifecycle and search: searches events
- Sporta user → Event details: joins events
- Event details → Event lifecycle and search: manages participation
- Sporta user → Profiles and friends: builds profile
- Profiles and friends → User and friend service: manages profile and friends
- Friend recommendations → User and friend service: queries users
- Sporta user → Posts and creation: shares photos
- Posts and creation → Event posts and comments: manages event posts
- Sporta user → Chat screens: coordinates in chat
- Chat screens → Chat service: sends messages
- Sporta user → Notifications: receives updates
- Sporta user → Object storage: uploads and retrieves media
- API gateway → Event lifecycle and search: routes requests
- Account authentication → Email delivery: requests account email