How skur-the-plug/mindarena works
MindArena is a competitive social-learning platform: users authenticate, explore arenas and challenges, submit structured work, and engage through voting, chat, notifications, and rankings. The default runtime exposes these capabilities as Spring Cloud services behind a gateway; a separate root Spring Boot app provides an optional legacy UI. The submission service’s verified flow calls Identity and Challenge before persisting submissions. README-level service routing and infrastructure links are documented; unsampled service internals are represented at subsystem level rather than inferred in detail.
Main entry points: ApiGatewayApplication.java API gateway · MindArenaApplication.java Legacy UI application · SubmissionApiService.java Submission workflow · AuthApiController.java Identity API
Components 26
API entry
- API gateway
services/api-gateway/src/main/java/com/mindarena/gateway/ApiGatewayApplication.java - Eureka registry
services/discovery-server/src/main/java/com/mindarena/discovery/DiscoveryServerApplication.java - Config server
services/config-server/src/main/java/com/mindarena/configserver/ConfigServerApplication.java
Identity
- Identity API
services/identity-service/src/main/java/com/mindarena/identity/controller/AuthApiController.java - Identity and tokens
services/identity-service/src/main/java/com/mindarena/identity/service/IdentityService.java - Identity data
services/identity-service/src/main/java/com/mindarena/identity/repository/UserRepository.java
Learning workflow
- Challenge API
services/challenge-service/src/main/java/com/mindarena/challenge/controller/ChallengeApiController.java - Arena and challenge catalog
services/challenge-service/src/main/java/com/mindarena/challenge/service/ChallengeCatalogService.java - Challenge data
services/challenge-service/src/main/java/com/mindarena/challenge/repository/ChallengeRepository.java - Submission API
services/submission-service/src/main/java/com/mindarena/submission/controller/SubmissionApiController.java - Submission workflow
services/submission-service/src/main/java/com/mindarena/submission/service/SubmissionApiService.java - Submission data
services/submission-service/src/main/java/com/mindarena/submission/repository/SubmissionRepository.java - Identity verification client
services/submission-service/src/main/java/com/mindarena/submission/client/IdentityServiceClient.java - Challenge policy client
services/submission-service/src/main/java/com/mindarena/submission/client/ChallengeServiceClient.java
Community and rankings
- Arena and challenge chat
services/chat-service/src/main/java/com/mindarena/chat/service/ChatApiService.java - Notifications
services/notification-service/src/main/java/com/mindarena/notification/service/UserNotificationService.java - Leaderboards
services/ranking-service/src/main/java/com/mindarena/ranking/service/LeaderboardService.java - Redis
- RabbitMQ
Legacy UI
- Legacy UI application
src/main/java/com/mindarena/MindArenaApplication.java - Arena and challenge UI
src/main/java/com/mindarena/domain/challenges/controller/ArenaController.java - Structured submission templates
src/main/java/com/mindarena/domain/submissions/service/SubmissionTemplateService.java - Live chat
src/main/java/com/mindarena/domain/chat/service/ChatService.java - Notifications and XP
src/main/java/com/mindarena/domain/notifications/service/NotificationService.java - Rankings
src/main/java/com/mindarena/domain/rankings/service/LeaderboardService.java
Other components
- Browser / API client
Connections 27
- Browser / API client → API gateway: sends API requests
README.md - API gateway → Identity API: routes identity
README.md - API gateway → Challenge API: routes challenges
README.md - API gateway → Submission API: routes submissions
README.md - API gateway → Arena and challenge chat: routes chat
README.md - API gateway → Notifications: routes notifications
README.md - API gateway → Leaderboards: routes leaderboards
README.md - API gateway → Eureka registry: uses service registry
README.md - API gateway → Config server: uses configuration
README.md - Identity API → Identity and tokens: delegates auth
- Identity and tokens → Identity data: reads and writes
- Challenge API → Arena and challenge catalog: delegates catalog
services/challenge-service/src/main/java/com/mindarena/challenge/controller/ChallengeApiController.java - Arena and challenge catalog → Challenge data: reads and writes
services/challenge-service/src/main/java/com/mindarena/challenge/service/ChallengeCatalogService.java - Submission API → Submission workflow: delegates workflow
services/submission-service/src/main/java/com/mindarena/submission/controller/SubmissionApiController.java - Submission workflow → Identity verification client: verifies user
services/submission-service/src/main/java/com/mindarena/submission/service/SubmissionApiService.java - Submission workflow → Challenge policy client: validates challenge
services/submission-service/src/main/java/com/mindarena/submission/service/SubmissionApiService.java - Submission workflow → Submission data: persists submission
services/submission-service/src/main/java/com/mindarena/submission/service/SubmissionApiService.java - Identity verification client → Identity API: verifies user
README.md - Challenge policy client → Challenge API: checks policy
README.md - Leaderboards → Redis: caches rankings
README.md - Legacy UI application → Arena and challenge UI: serves UI
- Legacy UI application → Structured submission templates: serves UI
- Legacy UI application → Live chat: serves UI
- Legacy UI application → Notifications and XP: serves UI
- Legacy UI application → Rankings: serves UI
- Live chat → RabbitMQ: publishes domain events
- Notifications and XP → RabbitMQ: publishes domain events