How thejamesmorra-eng/event-manager-platform works
Event Manager is a Spring Boot REST starter whose implemented workflows cover account registration and lookup, JWT login, and location CRUD. Controllers delegate to services, which use repositories for persistence; authentication also uses Spring Security and token generation. The README lists Kafka and Redis infrastructure, but the sampled runtime code does not establish product flows using them, so they are omitted. Source for the security configuration and notification contract implementation was not sampled.
Main entry points: UserRepository.java User repository · UserService.java User service · AuthService.java Auth service · LocationService.java Location service
Components 13
REST API
- User endpoints
event-manager/src/main/java/dev/sorokin/eventmanager/controller/UserController.java - Auth endpoint
event-manager/src/main/java/dev/sorokin/eventmanager/controller/AuthController.java - Location endpoints
event-manager/src/main/java/dev/sorokin/eventmanager/controller/LocationController.java
Accounts and Auth
- User service
event-manager/src/main/java/dev/sorokin/eventmanager/service/UserService.java - Auth service
event-manager/src/main/java/dev/sorokin/eventmanager/service/AuthService.java - JWT service
event-manager/src/main/java/dev/sorokin/eventmanager/security/JwtService.java - User details
event-manager/src/main/java/dev/sorokin/eventmanager/security/CustomUserDetailsService.java
Locations
- Location service
event-manager/src/main/java/dev/sorokin/eventmanager/service/LocationService.java
Persistence
- User repository
event-manager/src/main/java/dev/sorokin/eventmanager/repository/UserRepository.java - Location repository
event-manager/src/main/java/dev/sorokin/eventmanager/repository/LocationRepository.java - PostgreSQL
Other components
- API client
- Spring authentication
Connections 18
- API client → User endpoints: registers or looks up
- API client → Auth endpoint: submits credentials
- API client → Location endpoints: manages locations
- User endpoints → User service: delegates
- Auth endpoint → Auth service: delegates
- Location endpoints → Location service: delegates
- User service → User repository: checks and saves
- User service → User repository: reads users
- User service → PostgreSQL: persists via
- Location service → Location repository: queries and writes
- Location service → PostgreSQL: persists via
- Auth service → Spring authentication: authenticates
- Auth service → User repository: loads user
- Auth service → JWT service: generates token
- Spring authentication → User details: loads account details
- User details → User repository: finds account
- User repository → PostgreSQL: reads and writes
- Location repository → PostgreSQL: reads and writes