A full-stack web application for managing airline bookings, user profiles, flight schedules, and more. Built with a React + Vite frontend and a Node.js/Express backend.
- User authentication and profile management
- Flight search and booking
- Check-in and seat selection
- Admin panel for managing flights and bookings
- Email notifications
Frontend:
- React
- Vite
- CSS
Backend:
- Node.js
- Express.js
Database:
- MongoDB
- Mongoose (ODM for MongoDB)
Email & Media:
- Nodemailer (for sending emails)
- Cloudinary (for image/media storage)
Other/Dev Tools:
- dotenv (for environment variables)
- ESLint (for linting)
- Git & GitHub (version control)
Airline-Management-System/
backend/ # Node.js/Express backend API
public/ # Static assets for frontend
src/ # React frontend source code
- Node.js (v16 or higher recommended)
- npm (comes with Node.js)
- MongoDB (for backend database)
git clone https://github.com/your-username/Airline-Management-System.git
cd Airline-Management-Systemcd backend
npm installcd ..
npm install- Make sure MongoDB is running locally or update the connection string in
backend/config/db.jsto point to your MongoDB instance. - Create a
.envfile in thebackend/directory with the following variables:MONGODB_URI=your_mongodb_connection_string AUTH_EMAIL=your_email@example.com AUTH_PASS=your_email_password FRONTEND_URL=http://localhost:5173 BASE_URL=http://localhost:3000/ PORT=3000 CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_API_KEY=your_cloudinary_api_key CLOUDINARY_API_SECRET=your_cloudinary_api_secret
- (Optional) Create a
.envfile in the project root for frontend environment variables (if needed), e.g.:VITE_API_URL=http://localhost:5000
- (Optional) Set up other environment variables for sensitive data as required by your setup.
cd backend
npm run serveBy default, the backend runs on http://localhost:3000.
Open a new terminal window/tab:
npm run devThe frontend will be available at http://localhost:5173 (or as specified in the terminal).
- Visit the frontend URL in your browser.
- Sign up or log in to start booking flights.
- Admin users can access additional management features.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.



