Skip to content

WebDesgns/Flight-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Flight Management System

The Flight Management System is a web application developed using Angular for the frontend and Spring Boot for the backend. This system allows users to manage flights, airlines, airports, and bookings.

Features

  • User Registration and Authentication: Users can create an account and log in to access the system.
  • Flight Management: CRUD operations for flights, including creating, updating, and deleting flights.
  • Airline Management: Manage airlines, including adding, editing, and removing airlines.
  • Airport Management: CRUD operations for airports, allowing users to add, update, and delete airports.
  • Booking Management: Users can search for available flights and make bookings.
  • Role-based Access Control: Different roles such as admin and user with different permissions.
  • Data Validation: Input validation to ensure data integrity and prevent errors.
  • Error Handling: Proper handling of exceptions and errors with informative error messages.
  • User-friendly Interface: A clean and intuitive user interface for easy navigation and interaction.

Prerequisites

Make sure you have the following software installed:

Getting Started

Frontend Setup

  1. Clone the repository:
git clone https://github.com/WebDesgns/Flight-Management-System.git
  1. Navigate to the frontend directory:
cd flight-management-system/Client
  1. Install the dependencies:
npm install
  1. Start the development server:
ng serve
  1. Open your browser and access the application at http://localhost:4200.

Backend Setup

  1. Navigate to the backend directory:
cd flight-management-system/server
  1. Build the project using Maven:
mvn clean install
  1. Run the Spring Boot application:
mvn spring-boot:run

The backend server will start running on http://localhost:8080.

Configuration

Backend Configuration

The backend configuration file is located at flight-management-system/backend/src/main/resources/application.properties. Update the following properties according to your environment:

spring.datasource.url=jdbc:mysql://localhost:3306/flight_management_system
spring.datasource.username=root
spring.datasource.password=password

Replace the spring.datasource.url with your MySQL database URL, and update the spring.datasource.username and spring.datasource.password with your MySQL credentials.

Frontend Configuration

export const environment = {
  production: false,
  apiUrl: 'http://localhost:8080' // Update with your backend URL
};

Replace http://localhost:8080 with the URL where your backend server is running.

Usage

Once the application is set up and running, you can access it through your browser. Use the provided user registration functionality to create an account and log in.

As an admin, you will have access to manage flights, airlines, and airports. Regular users can search for available flights and make bookings.

Contributing

Contributions are welcome! If you want to contribute to this project, please follow these steps:

  1. Fork this repository.
  2. Create a new branch: git checkout -b my-new-feature.
  3. Make

your changes and commit them: git commit -am 'Add some feature'. 4. Push to the branch: git push origin my-new-feature. 5. Submit a pull request.

Acknowledgments

Releases

No releases published

Packages

No packages published