A robust and scalable full-stack Flight Management System built with React (Vite) for the frontend and Node.js, Express, MySQL for the backend. This platform enables users to search, view, and book flights, while providing an administrative interface for managing flights. The application ensures a seamless experience with a responsive design and modern UI components.
- User registration and login functionality
- Role-based redirection (Admin/User)
- Browse available flights with real-time data
- Book flights and view booking history
- Responsive layout for all screen sizes
- Secure admin login
- Add new flights
- Edit existing flight details
- Delete flights from the system
- View all bookings
- Token-based user authentication (JWT)
- Clean and modular folder structure
- Scalable architecture with separated concerns
- Integration-ready API endpoints
- React (Vite)
- Tailwind CSS
- shadcn/ui
- React Router
- Node.js
- Express.js
- MySQL
- JWT (Authentication)
- CORS, dotenv, and body-parser
Create a .env file in the server/ directory with the following content:
PORT=5000
JWT_SECRET=your_jwt_secret
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=your_password
DB_NAME=flightdb