This is a Java-Spring Boot project that allows users to book tickets for a conference. It handles ticket reservations, stores booking details in an H2 in-memory database, and provides basic data management functionality using JPA
- Simple command-line ticket booking application
- Keeps track of remaining tickets and prevents overbooking
- Provides confirmation messages for each booking
- Stores booking information in an H2 database
- Java 21 or later
- Maven (ensure Maven is installed and added to your system's path)
-
Clone the repository
git clone https://github.com/rahulkarthickr/conference-booking-app.git
-
Navigate to the project directory
cd conference-booking-app
-
Comment out the below lines in
application.properties
and update your database username & password# spring.datasource.username=your-username # spring.datasource.password=your-password
-
Build the project
mvn clean install
-
Run the application
mvn spring-boot:run
-
Test the application at
http://localhost:8080/test
-
Access the database by entering username and password at
http://localhost:8080/h2-console/
-
Run the SQL query in the console to verify that the data is being saved
SELECT * FROM bookings;
If you encounter any issues or have suggestions for improvements , please open an issue or submit a pull request