Evently is a comprehensive event management and ticketing platform built with Spring Boot. It provides a complete solution for managing venues, events, shows, and ticket bookings with support for payments, refunds, and email notifications.
- Event Management: Create and manage events with categories and status tracking
- Venue Management: Set up venues with customizable seating arrangements
- Show Scheduling: Schedule multiple shows for events at different venues and times
- Ticket Booking: Real-time seat selection and booking system
- Payment Processing: Integrated payment handling with status tracking
- Refund Management: Automated refund processing for cancellations
- Email Notifications: Asynchronous email notifications for bookings and cancellations
- RESTful API: Comprehensive REST API for both users and administrators
- Database Migrations: Flyway-based database schema management
- Caching: Redis integration for distributed locking and performance
- Security: Header-based authentication for users and admins
- Validation: Comprehensive input validation and error handling
- Pagination: Efficient data pagination for large datasets
- Async Processing: Background email processing with scheduling
-
Top-level
-
API Docs (
docs/api-docs)- API Specification
- Postman Collections:
Import the above JSON files into Postman to try the APIs locally. Default base URL:
http://localhost:8080. -
Database (
docs/database) -
Diagrams (
docs/Diagrams)
- Backend: Spring Boot 3.5.5 with Java 21
- Database: PostgreSQL 14 with Flyway migrations
- Cache: Redis for distributed locking and caching
- Build Tool: Maven
- Containerization: Docker Compose
The platform uses a relational database with the following core entities:
- Venues: Physical locations with seating capacity
- Seats: Individual seat definitions with pricing
- Events: Event information and metadata
- Shows: Scheduled performances linking events to venues
- Users: User account management
- Bookings: User reservations for shows
- Tickets: Individual seat tickets within bookings
- Payments: Payment transaction records
- Refunds: Refund processing records
- Emails: Asynchronous email queue
- Java 21 or higher
- Maven 3.6 or higher
- Docker and Docker Compose
- Git
-
Clone the repository
git clone <repository-url> cd evently
-
Start the required services
docker-compose up -d
This will start PostgreSQL and Redis services.
-
Build and run the application
./mvnw spring-boot:run
Or on Windows:
mvnw.cmd spring-boot:run
All user API requests (except authentication) require the X-User-ID header with a valid user ID.
All admin API requests require the X-Admin-User header set to true.
POST /api/v1/auth/signup- Register a new userPOST /api/v1/auth/signin- User login
GET /api/v1/user/event/list- Browse available eventsGET /api/v1/user/event/{id}- Get event detailsGET /api/v1/user/show/{showId}/seats- View available seats
POST /api/v1/user/booking- Create a booking (reserve seats)POST /api/v1/user/booking/payment- Process paymentGET /api/v1/user/booking/list- View booking historyDELETE /api/v1/user/booking/cancel- Cancel booking
GET /api/v1/admin/venue/list- Manage venuesGET /api/v1/admin/event/list- Manage eventsGET /api/v1/admin/show/event/{eventId}/list- View shows for an eventGET /api/v1/admin/user/list- Manage users
For complete API documentation, see API Specification.
- Seat Selection: Users browse available seats for a show
- Reservation: Seats are temporarily reserved for 5 minutes
- Payment: Users complete payment within the reservation window
- Confirmation: Successful payment confirms the booking
- Tickets: Individual tickets are generated for each seat
- Notifications: Email confirmations are sent asynchronously
src/
βββ main/
β βββ java/com/chaitanya/evently/
β β βββ Application.java # Main application class
β β βββ config/ # Configuration classes
β β βββ controller/ # REST controllers
β β β βββ admin/ # Admin-specific endpoints
β β β βββ user/ # User-specific endpoints
β β βββ dto/ # Data Transfer Objects
β β βββ exception/ # Exception handling
β β βββ model/ # JPA entities
β β βββ repository/ # Data access layer
β β βββ service/ # Business logic
β β βββ util/ # Utility classes
β βββ resources/
β βββ application.yml # Application configuration
β βββ db/migration/ # Database migrations
βββ test/ # Test classes
The application uses Flyway for database migrations. Migration files are located in src/main/resources/db/migration/ and are automatically applied on startup.
./mvnw spring-boot:run./mvnw clean package
java -jar target/evently-0.0.1-SNAPSHOT.jarThe application uses environment variables for configuration. Key variables include:
# Database Configuration
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=evently
POSTGRES_USER=user
POSTGRES_PASSWORD=pass
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DATABASE=0
# Application Configuration
SPRING_APP_NAME=evently
DEFAULT_PAGE_SIZE=50Key configuration options in application.yml:
spring:
application:
name: ${SPRING_APP_NAME:evently}
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DB:evently_db}?options=-c%20TimeZone%3DAsia/Kolkata
username: ${POSTGRES_USER:user}
password: ${POSTGRES_PASSWORD:pass}
driver-class-name: org.postgresql.Driver
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
flyway:
enabled: ${FLYWAY_ENABLED:true}
locations: classpath:db/migration
baseline-on-migrate: ${FLYWAY_BASELINE_ON_MIGRATE:true}
table: ${FLYWAY_TABLE:flyway_schema_history}
logging:
level:
org.flywaydb: ${FLYWAY_LOG_LEVEL:INFO}
org.springframework: ${SPRING_LOG_LEVEL:INFO}
app:
pagination:
default-page-size: ${DEFAULT_PAGE_SIZE:50}Evently - Your complete event ticketing solution built with Spring Boot and modern Java technologies.


