The Flight Management System is a Java Spring Boot application that provides a RESTful API for managing flights, passengers, and bookings. It utilizes Hibernate for database interaction and MySQL as the underlying database.
- JDK 17 or later installed
- MySQL installed and running
- Maven for dependency management
-
Clone the repository: git clone https://github.com/mdadilraza/flight-management-system.git
-
Navigate to the project directory:
-
Configure database settings in
application.properties
. -
Build the project using Maven:
-
Run the application:
The API provides endpoints for managing flights, passengers, and bookings. Below are some example endpoints:
GET /flights
: Retrieve a list of all flights.POST /flights
: Add a new flight.GET /passengers
: Retrieve a list of all passengers.POST /passengers
: Add a new passenger.GET /bookings
: Retrieve a list of all bookings.POST /bookings
: Make a new booking.
For detailed API documentation and usage examples, refer to the API Documentation.
The application uses MySQL as the database. Make sure to configure the database connection settings in the application.properties
file before running the application.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.
For major changes, please open an issue first to discuss the proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, please contact the project maintainer at [email protected].