Skip to content

AnuragTheCoder/Aero-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airline Management System

hosted-url--https://aero-management-3.onrender.com Welcome to the Airline Management System project! This repository hosts a full-stack web application that allows users to manage their airline travel efficiently. By using this application, users can search for flights, book tickets, and cancel reservations, all with a secure authentication system.

Features

  • User Authentication: Secure registration and login system.
  • Flight Search: Search for available flights based on departure and arrival cities, and preferred departure time.
  • Flight Booking: Book flights and receive booking confirmations.
  • Booking Cancellation: Cancel bookings easily and get notified of the changes.
  • Interactive UI: User-friendly interface for a seamless experience.

Getting Started

Prerequisites

  • Python 3.7+
  • Node.js
  • React
  • Express
  • MongoDB

Installation

  1. Clone the repository:

    git clone https://github.com/AnuragTheCoder/Aero-management.git
    cd Aero-management
  2. Set up the backend:

    • Navigate to the backend directory:
      cd backend
    • Install the required packages:
      npm install
    • Start the server:
      nodemon server.js
  3. Set up the frontend:

    • Navigate to the airline directory:
      cd ../airline
    • Install the required packages:
      npm install
    • Start the frontend server:
      npm start
  4. Update CORS settings:

    • Ensure your React app URL is correctly set in the CORS settings of app.js. If you are running on localhost ports 3000, 3001, 3002, or 3003, you should not encounter any issues.

Usage

  1. Open your web browser and navigate to the React frontend URL, typically http://localhost:3000.

  2. Register a new user account or log in with existing credentials.

  3. When You Register You will automatically be redirected to explore page If It shows Error You must reload the page

  4. There is a route /adminpanel which you can access only if you enter admin credentials via logging in

  5. admin Credentials are email=anurag password=anurag

  6. Search for flights by entering the departure and arrival cities, and the desired departure time.

  7. Book a flight from the search results.

  8. Manage your bookings by viewing booked flights and canceling if necessary.

Project Structure

  • backend/: Contains the Express server and Mongoose models for managing the backend functionality.
  • airline/: Contains the React frontend application for user interactions.
  • app.js: Main backend application script with CORS settings.
  • server.js: Script to start the backend server.

Contributing

We welcome contributions! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Thanks to the open-source community for the tools and libraries used in this project.

Contact

If you have any questions, feel free to reach out:

Enjoy managing your airline travels! ✈️

Screenshots

Home Page

Home Page

Register

Home Page

Search Flights/Explore Flights

Search Flights

Book Flight

Book Flight

Manage Bookings

Manage Bookings

Admin To Add Flights(login with email=anurag password=anurag and route to localhost:YOUR_PORT/adminpanel)

Add Flights

Update Added Flights

Update Flihts Flag flihts for updation Flag flihts for updation

About Page

About us

Contact us Page

Contact Us

Live Demo