BookMyFlight is a web application for managing flight bookings. This project is built using the FastAPI framework for the backend and React for the frontend.
- Flight Management: Add, delete, and retrieve flight information.
- User Authentication: Secure user authentication using JWT tokens.
- Flight Booking: Allow users to book flights with ease.
- Admin Panel: Special routes and functionalities for admin users.
- Backend: FastAPI, MongoDB
- Frontend: React
- Authentication: JWT Tokens
- Database: MongoDB
The project is divided into three main components:
- Backend: Handles API requests, authentication, and database operations.
- Frontend: Provides a user interface for interacting with flight data.
- Database: Stores flight and user information.
- Node.js
- Python
- MongoDB
- Clone the repository:
git clone https://github.com/yourusername/BookMyFlight.git
cd BookMyFlight
- Install backend dependencies:
cd server
pip install -r requirements.txt
- Install frontend dependencies:
cd client
npm install
-
Set up environment variables: Create a .env file in the server directory and configure necessary variables.
-
Run the application: Start the FastAPI server:
cd server
python run.py
Start the React app:
cd client
npm run dev