In the fast-paced digital age, the Airplane Ticket Booking and Management System provides a modern solution to the limitations of traditional ticketing methods. By leveraging the MERN stack (MongoDB, Express.js, React.js, Node.js), this application offers a streamlined and secure platform for users to search, book, and manage flight tickets with ease.
- User Management: Register, log in, and manage user profiles securely.
- Flight Search and Booking: Search for flights based on various criteria, book tickets securely, and make payments through PCI-compliant gateways.
- Admin Panel: Manage flight listings, user information, and system configurations efficiently.
- Responsive Design: Enjoy a seamless experience across different devices, including desktops, laptops, tablets, and smartphones.
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/Kevin310703/Q-Airline.git
- Navigate to the project directory:
cd Q-Airline
- There are 2 directories Frontend and backend for frontend
cd frontend
for backend
cd backend
- Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file in the root directory. - Add environment variables for MySQL connection, Cloudinary, and other sensitive information.
- Create a
-
Start the development frontend server:
npm run dev
And open your browser and visit http://localhost:5173
to access the application.
- Start the development backend server:
npx nodemon index.js
And open your browser and visit http://localhost:5000
to access the application.
- Start the development admin server:
npm start
And open your browser and visit http://localhost:3000
to access the application.
Once the application is running, users can:
- Register or log in to their accounts.
- Search for flights based on their preferences.
- Book tickets securely and make payments.
- Manage booked tickets, including viewing QR codes for verification.
Admin users can access additional functionalities through the admin panel, such as managing flight listings and user information.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy coding!