Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 2.27 KB

README.md

File metadata and controls

76 lines (57 loc) · 2.27 KB

BookMyFlight

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.

Features

  • 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.

Technologies Used

  • Backend: FastAPI, MongoDB
  • Frontend: React
  • Authentication: JWT Tokens
  • Database: MongoDB

Project Structure

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.

Getting Started

Prerequisites

  • Node.js
  • Python
  • MongoDB

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/BookMyFlight.git
cd BookMyFlight
  1. Install backend dependencies:
cd server
pip install -r requirements.txt
  1. Install frontend dependencies:
cd client
npm install
  1. Set up environment variables: Create a .env file in the server directory and configure necessary variables.

  2. Run the application: Start the FastAPI server:

cd server
python run.py

Start the React app:

cd client
npm run dev

Screenshot from 2024-02-29 15-37-34 Screenshot from 2024-02-29 15-37-47 Screenshot from 2024-02-29 15-38-14 Screenshot from 2024-02-29 15-38-19 Screenshot from 2024-02-29 15-38-25 Screenshot from 2024-02-29 15-38-35