How ganapathysubramanian/event-management-system works
Project type and purpose
• This is a monolithic, full-stack Spring Boot web application called “Event-Management-System.”
• Purpose: allow different user roles (Admin, SubAdmin, SuperAdmin, User) to manage events, hotels, vendors, catering, bookings; support payments via Paytm and notifications via Twilio; export user data in Excel/PDF.
File structure
• src/main/java/com/app/demo:
– controller package: HTTP endpoints implementing Spring MVC controllers
– services package: business logic and external-API integrations (Paytm, Twilio)
– repository package: Spring Data JPA interfaces for CRUD on models
– model package: JPA entities (Event, Hotel, Catering, Vendor, Booking, User, PaytmDetails)
– Utility classes for PDF/Excel export
• src/main/resources/application.properties: DB credentials, other configuration
• src/main/webapp/views + assets: JSP pages (views), CSS/JS/images – the presentation layer
• db_sql: DDL + seed data for MySQL
• pom.xml / Maven wrapper: build and dependency management
Additional insights from README
• Spring Boot application launched from EventManagementSystemApplication.java
• Requires a MySQL schema named event_management_system, pre-populated via provided SQL
• Users authenticate and access role-based JSP UIs
• External dependencies: Paytm payment gateway, Twilio SMS service
a. Main components
1. Client (Web Browser) – user interface layer
2. Spring Boot Application (embedded Tomcat)
• Spring MVC Controllers
• Service Layer (business logic + external service clients)
• Data Access Layer (Spring Data JPA Repositories)
• Utility Modules (ExcelExporter, PDFExporter)
3. MySQL Database (event_management_system)
4. External Services
• Paytm Payment Gateway REST API
• Twilio SMS REST API
b. Relationships & interactions
– Browser → HTTP(S) request → Controllers
– Controllers ↔ Service Layer ↔ Repositories ↔ Database
– Service Layer ↔ Paytm API (payment processing)
– Service Layer ↔ Twilio API (SMS notifications)
– Controllers → resolve JSP views + assets → Browser
– Utility modules invoked by controllers/services for file exports
c. Architectural patterns & principles
– Layered architecture (Presentation → Controller → Service → Repository → Database)
– MVC pattern for the web tier (JSP views, Spring MVC controllers, model objects)
– Dependency injection via Spring for loose coupling
– External-service abstraction: wrap REST calls in service interfaces
d. Key technologies & frameworks
– Java 8+ / Spring Boot / Spring MVC / Spring Data JPA
– JSP / Servlet API for views
– Maven for builds (pom.xml / mvnw)
– MySQL RDBMS
– Twilio and Paytm REST APIs
– Apache POI (or similar) for Excel/PDF export
Detail
– Include all user roles if helpful (User, Admin, SubAdmin, SuperAdmin) as sub-flows of the same MVC stack.
– Capture the database schema anchor point (single MySQL instance).
– Show the file-export path: Controllers → UserPDFExporter / UserExcelExporter → Generated file.
– Annotate configuration source: application.properties → DataSource → JPA EntityManager
– If deploying via embedded Tomcat, note the Maven assembly and mvnw wrapper in the build layer.