# mowlishwar07/eventsphere-campus-event-management architecture

> Architecture diagram of the GitHub repository mowlishwar07/eventsphere-campus-event-management, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mowlishwar07/eventsphere-campus-event-management
- Repository: https://github.com/mowlishwar07/eventsphere-campus-event-management

## Overview

EventSphere is a campus event-management web application. Students register and sign in, discover and filter events, submit solo or team registrations, and track or cancel them; administrators manage events and review registrations and rosters. The README documents Spring MVC controllers, business-logic services, JPA repositories, MySQL, Thymeleaf views, and session-based role authentication. Source excerpts were unavailable, so specific method-level call relationships cannot be verified; edges below reflect documented routes, capabilities, and architecture.

Main entry points: [`eventsphere/src/main/java/com/example/eventsphere/controller/AuthController.java`](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/AuthController.java) (Authentication routes), [`eventsphere/src/main/java/com/example/eventsphere/controller/StudentController.java`](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/StudentController.java) (Student routes), [`eventsphere/src/main/java/com/example/eventsphere/controller/AdminController.java`](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/AdminController.java) (Admin routes), [`eventsphere/src/main/java/com/example/eventsphere/service/EventService.java`](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/EventService.java) (Event management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portals["User portals"]
  node_student_routes["Student routes"]
  node_auth_routes["Authentication routes"]
  node_admin_routes["Admin routes"]
end

subgraph group_application["Application logic"]
  node_user_service["User accounts<br/>[UserService.java]"]
  node_event_service["Event management<br/>[EventService.java]"]
  node_registration_service["Registration management"]
  node_security["Session security"]
  node_admin_initializer["Admin initializer"]
end

subgraph group_domain["Domain and storage"]
  node_user_domain["User and roles<br/>[User.java]"]
  node_event_domain["Events and status<br/>[Event.java]"]
  node_registration_domain["Registrations and teams<br/>[Registration.java]"]
  node_repositories["JPA repositories"]
  node_mysql[("MySQL database")]
end

subgraph group_web["Web presentation"]
  node_student_views["Student views"]
  node_admin_views["Admin views"]
  node_shared_views["Shared and auth views"]
  node_styling["Responsive styling<br/>[style.css]"]
end

node_student(("Student"))
node_admin(("Administrator"))

node_student -->|"signs up or in"| node_auth_routes
node_admin -->|"admin sign-in"| node_auth_routes
node_student -->|"uses student routes"| node_student_routes
node_admin -->|"uses admin routes"| node_admin_routes
node_auth_routes -.->|"account access"| node_user_service
node_student_routes -.->|"browses events"| node_event_service
node_student_routes -.->|"registers or cancels"| node_registration_service
node_admin_routes -.->|"manages events"| node_event_service
node_admin_routes -.->|"reviews registrations"| node_registration_service
node_security -->|"protects sessions"| node_auth_routes
node_admin_initializer -->|"initializes admin"| node_user_domain
node_user_service -.->|"uses JPA data access"| node_repositories
node_event_service -.->|"uses JPA data access"| node_repositories
node_registration_service -.->|"uses JPA data access"| node_repositories
node_repositories -->|"persists domain data"| node_mysql
node_user_service -.->|"handles accounts"| node_user_domain
node_event_service -.->|"handles events"| node_event_domain
node_registration_service -.->|"handles registrations"| node_registration_domain
node_student_routes -->|"serves student pages"| node_student_views
node_admin_routes -->|"serves admin pages"| node_admin_views
node_auth_routes -->|"serves login pages"| node_shared_views
node_student_views -.->|"uses styling"| node_styling
node_admin_views -.->|"uses styling"| node_styling

click node_student_routes "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/StudentController.java"
click node_auth_routes "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/AuthController.java"
click node_admin_routes "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/AdminController.java"
click node_user_service "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/UserService.java"
click node_event_service "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/EventService.java"
click node_registration_service "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/RegistrationService.java"
click node_security "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/config/SecurityConfig.java"
click node_admin_initializer "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/config/AdminDataInitializer.java"
click node_user_domain "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/model/User.java"
click node_event_domain "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/model/Event.java"
click node_registration_domain "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/model/Registration.java"
click node_repositories "https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/java/com/example/eventsphere/repository"
click node_student_views "https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/resources/templates"
click node_admin_views "https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/resources/templates"
click node_shared_views "https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/resources/templates"
click node_styling "https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/resources/static/css/style.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_student_routes,node_auth_routes,node_admin_routes toneBlue
class node_user_service,node_event_service,node_registration_service,node_security,node_admin_initializer toneAmber
class node_user_domain,node_event_domain,node_registration_domain,node_repositories,node_mysql toneMint
class node_student_views,node_admin_views,node_shared_views,node_styling toneRose
class node_student,node_admin toneIndigo
```

## Components

### User portals

- [Student routes](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/StudentController.java): `eventsphere/src/main/java/com/example/eventsphere/controller/StudentController.java`
- [Authentication routes](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/AuthController.java): `eventsphere/src/main/java/com/example/eventsphere/controller/AuthController.java`
- [Admin routes](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/controller/AdminController.java): `eventsphere/src/main/java/com/example/eventsphere/controller/AdminController.java`

### Application logic

- [User accounts](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/UserService.java): `eventsphere/src/main/java/com/example/eventsphere/service/UserService.java`
- [Event management](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/EventService.java): `eventsphere/src/main/java/com/example/eventsphere/service/EventService.java`
- [Registration management](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/service/RegistrationService.java): `eventsphere/src/main/java/com/example/eventsphere/service/RegistrationService.java`
- [Session security](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/config/SecurityConfig.java): `eventsphere/src/main/java/com/example/eventsphere/config/SecurityConfig.java`
- [Admin initializer](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/config/AdminDataInitializer.java): `eventsphere/src/main/java/com/example/eventsphere/config/AdminDataInitializer.java`

### Domain and storage

- [User and roles](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/model/User.java): `eventsphere/src/main/java/com/example/eventsphere/model/User.java`
- [Events and status](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/model/Event.java): `eventsphere/src/main/java/com/example/eventsphere/model/Event.java`
- [Registrations and teams](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/java/com/example/eventsphere/model/Registration.java): `eventsphere/src/main/java/com/example/eventsphere/model/Registration.java`
- [JPA repositories](https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/java/com/example/eventsphere/repository): `eventsphere/src/main/java/com/example/eventsphere/repository`
- **MySQL database**

### Web presentation

- [Student views](https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/resources/templates): `eventsphere/src/main/resources/templates`
- [Admin views](https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/resources/templates): `eventsphere/src/main/resources/templates`
- [Shared and auth views](https://github.com/mowlishwar07/eventsphere-campus-event-management/tree/main/eventsphere/src/main/resources/templates): `eventsphere/src/main/resources/templates`
- [Responsive styling](https://github.com/mowlishwar07/eventsphere-campus-event-management/blob/main/eventsphere/src/main/resources/static/css/style.css): `eventsphere/src/main/resources/static/css/style.css`

### Other components

- **Student**
- **Administrator**

## Connections

- Student → Authentication routes: signs up or in (evidence: `README.md`)
- Administrator → Authentication routes: admin sign-in (evidence: `README.md`)
- Student → Student routes: uses student routes (evidence: `README.md`)
- Administrator → Admin routes: uses admin routes (evidence: `README.md`)
- Authentication routes → User accounts: account access
- Student routes → Event management: browses events
- Student routes → Registration management: registers or cancels
- Admin routes → Event management: manages events
- Admin routes → Registration management: reviews registrations
- Session security → Authentication routes: protects sessions (evidence: `README.md`)
- Admin initializer → User and roles: initializes admin (evidence: `README.md`)
- User accounts → JPA repositories: uses JPA data access
- Event management → JPA repositories: uses JPA data access
- Registration management → JPA repositories: uses JPA data access
- JPA repositories → MySQL database: persists domain data (evidence: `README.md`)
- User accounts → User and roles: handles accounts
- Event management → Events and status: handles events
- Registration management → Registrations and teams: handles registrations
- Student routes → Student views: serves student pages (evidence: `README.md`)
- Admin routes → Admin views: serves admin pages (evidence: `README.md`)
- Authentication routes → Shared and auth views: serves login pages (evidence: `README.md`)
- Student views → Responsive styling: uses styling
- Admin views → Responsive styling: uses styling
