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.
- 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.
- Python 3.7+
- Node.js
- React
- Express
- MongoDB
-
Clone the repository:
git clone https://github.com/AnuragTheCoder/Aero-management.git cd Aero-management
-
Set up the backend:
- Navigate to the
backend
directory:cd backend
- Install the required packages:
npm install
- Start the server:
nodemon server.js
- Navigate to the
-
Set up the frontend:
- Navigate to the
airline
directory:cd ../airline
- Install the required packages:
npm install
- Start the frontend server:
npm start
- Navigate to the
-
Update CORS settings:
- Ensure your React app URL is correctly set in the CORS settings of
app.js
. If you are running onlocalhost
ports3000
,3001
,3002
, or3003
, you should not encounter any issues.
- Ensure your React app URL is correctly set in the CORS settings of
-
Open your web browser and navigate to the React frontend URL, typically
http://localhost:3000
. -
Register a new user account or log in with existing credentials.
-
When You Register You will automatically be redirected to explore page If It shows Error You must reload the page
-
There is a route /adminpanel which you can access only if you enter admin credentials via logging in
-
admin Credentials are email=anurag password=anurag
-
Search for flights by entering the departure and arrival cities, and the desired departure time.
-
Book a flight from the search results.
-
Manage your bookings by viewing booked flights and canceling if necessary.
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.
We welcome contributions! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the open-source community for the tools and libraries used in this project.
If you have any questions, feel free to reach out:
- GitHub: AnuragTheCoder
- Email: youremail@example.com
Enjoy managing your airline travels!