This project is a Flight Management System implemented in Go. It provides various functionalities to manage flights efficiently.
Users can add new flights with details such as flight number, origin, destination, departure time, and arrival time. The initial status of the flight is set to "on-time".
Displays a list of all added flights, including their details such as flight number, origin, destination, departure time, arrival time, and status.
Enables users to search for a specific flight by its flight number, displaying the flight's details if found.
Allows users to delete a flight by entering its flight number. If the flight is found, it will be removed from the list.
Enables users to update the details of a specific flight by entering its flight number. Users can update the origin, destination, departure time, and arrival time.
Provides the functionality to sort flights based on their departure times. The sorted list of flights is then displayed.
Allows users to filter flights based on their origin. It displays all flights that originate from the specified location.
Enables users to update the status of a flight by entering its flight number. Possible statuses include "on-time", "delayed", and "cancelled".
Generates reports for flights based on their status. It displays lists of delayed and cancelled flights separately.
Exits the application.
This Flight Management System is designed to be user-friendly, with a simple menu-driven interface that guides users through the available options.
To run this project, follow these steps:
- Clone the repository.
- Install GoLang on your system.
- Open a terminal and navigate to the project directory.
- Run the command
go run flight.go
to start the application.
Alternatively, you can use the provided Docker image since this project is already dockerized. Here are the instructions to build and run the Docker container:
Ensure you have Docker installed on your system. Open a terminal and navigate to the project directory. Build the Docker image using the following command:
docker build -t fms .
Run the Docker container using the following command:
docker run fms
This way, you can run the application without needing to install GoLang directly on your system.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.