FlyEase is a flight ticket booking system built using Java Spring Boot MVC framework. It allows users to search for flights, book tickets, and manage their bookings conveniently.
- Java JDK installed on your system
- Maven installed on your system
- MySQL installed on your system
-
Clone the repository:
git clone https://github.com/RiteshPatil2001/Flight-Ticket-Booking-System-Using-Java.git
-
Navigate to the project directory:
cd Flight-Ticket-Booking-System-Using-Java -
Update database details:
- Open
src/main/resources/application.propertiesfile. - Update the MySQL database details under
spring.datasource.*. - Create a MySQL database with the provided details. No need to create tables, the program will automatically create them on startup.
- Open
-
Activate Payment Integration:
- Open
src/main/webapp/WEB-INF/views/booking.jspfile. - Go to line number 343 and replace
razorpay-text-api-idwith your Razorpay API ID. - Open
src/main/java/controller/UserController.javafile. - Go to line number 173 and replace
razorpay-text-api-idandrazorpay-secret-IDwith your API's ID to activate payment integration.
- Open
-
Run the application:
mvn spring-boot:run
Or Run project using IDE like Eclipse or VsCode
-
Access the application:
- Open a web browser and navigate to
http://localhost:2001.
- Open a web browser and navigate to
-
Set up admin credentials:
- After running the application, the necessary tables will be created in the MySQL database.
- Manually insert admin credentials into the
admintable in the database.
- Search and book flights.
- Manage bookings.
- Payment integration with Razorpay.
- Admin panel for managing system settings.
- Java Spring Boot
- MVC framework
- MySQL database
- Maven for dependency management
Feel free to customize it further according to your needs or add any additional information about the project.