How smirnovsa1/java-explore-with-me works
ExploreWithMe is an event-discovery and participation service, accompanied by a visit-statistics service. The main user workflow is to browse events, inspect an event, and submit a participation request; organizers manage events and requests, while administrators manage categories and event publication. Compilations and comments extend discovery and discussion, and user management supports the platform. The graph also shows the statistics API and its persistence layer. Several service implementations and repositories are listed but not excerpted, so their internal event-service calls and storage relationships are not asserted.
Main entry points: StatsController.java Statistics endpoints · PublicEventController.java Browse events · EventServiceImpl.java Event workflows · controller Category endpoints
Components 22
Event discovery
- Browse events
ewm-service/src/main/java/ru/practicum/event/controller/PublicEventController.java - Event workflows
ewm-service/src/main/java/ru/practicum/event/service/EventServiceImpl.java - Event search
ewm-service/src/main/java/ru/practicum/event/repository/SearchEventRepository.java - Category endpoints
ewm-service/src/main/java/ru/practicum/category/controller - Category management
ewm-service/src/main/java/ru/practicum/category/service/CategoryServiceImpl.java - Event compilations
ewm-service/src/main/java/ru/practicum/compilation/controller - Compilation workflows
ewm-service/src/main/java/ru/practicum/compilation/service/CompilationServiceImpl.java
Participation and comments
- Participation requests
ewm-service/src/main/java/ru/practicum/participation/controller - Request workflows
ewm-service/src/main/java/ru/practicum/participation/service/ParticipationRequestServiceImpl.java - Comment endpoints
ewm-service/src/main/java/ru/practicum/comment/controller - Comment workflows
ewm-service/src/main/java/ru/practicum/comment/service/CommentServiceImpl.java
Platform management
- User endpoints
ewm-service/src/main/java/ru/practicum/user/controller/UserController.java - User management
ewm-service/src/main/java/ru/practicum/user/service/UserServiceImpl.java - Admin event endpoints
ewm-service/src/main/java/ru/practicum/event/controller/AdminEventController.java - Admin comment endpoints
ewm-service/src/main/java/ru/practicum/comment/controller/AdminCommentController.java
Visit statistics
- Statistics client
stats-server/client/src/main/java/ru/practicum/StatsClient.java - Statistics endpoints
stats-server/service/src/main/java/ru/practicum/controller/StatsController.java - Statistics queries
stats-server/service/src/main/java/ru/practicum/service/StatsServiceImpl.java - Hit records
stats-server/service/src/main/java/ru/practicum/repository/StatsRepository.java
Other components
- Visitors
- Registered users
- Administrators
Connections 20
- Visitors → Browse events: browse
ewm-service/src/main/java/ru/practicum/event/controller/PublicEventController.java - Browse events → Event workflows: delegates to
ewm-service/src/main/java/ru/practicum/event/controller/PublicEventController.java - Registered users → Participation requests: request entry
- Participation requests → Request workflows: delegates to
ewm-service/src/main/java/ru/practicum/participation/controller/PrivateUserParticipationRequestController.java - Registered users → Comment endpoints: comment entry
- Comment endpoints → Comment workflows: delegates to
ewm-service/src/main/java/ru/practicum/comment/controller/PrivateCommentController.java - Administrators → Category endpoints: manage
ewm-service/src/main/java/ru/practicum/category/controller/AdminCategoryController.java - Category endpoints → Category management: delegates to
ewm-service/src/main/java/ru/practicum/category/controller/AdminCategoryController.java - Administrators → Admin event endpoints: manage
- Administrators → Admin comment endpoints: moderate
ewm-service/src/main/java/ru/practicum/comment/controller/AdminCommentController.java - Admin comment endpoints → Comment workflows: delegates to
ewm-service/src/main/java/ru/practicum/comment/controller/AdminCommentController.java - Registered users → User endpoints: manage account
ewm-service/src/main/java/ru/practicum/user/controller/UserController.java - User endpoints → User management: delegates to
ewm-service/src/main/java/ru/practicum/user/controller/UserController.java - Administrators → Event compilations: manage
ewm-service/src/main/java/ru/practicum/compilation/controller/AdminCompilationController.java - Event compilations → Compilation workflows: delegates to
ewm-service/src/main/java/ru/practicum/compilation/controller/AdminCompilationController.java - Event workflows → Event search: searches
- Statistics client → Statistics endpoints: HTTP requests
- Visitors → Statistics endpoints: query statistics
stats-server/service/src/main/java/ru/practicum/controller/StatsController.java - Statistics endpoints → Statistics queries: delegates to
stats-server/service/src/main/java/ru/practicum/controller/StatsController.java - Statistics queries → Hit records: queries
stats-server/service/src/main/java/ru/practicum/service/StatsServiceImpl.java