Flight Price Tracker is a web application that scrapes Google Flights to retrieve the prices of various flights between a specified source and destination. It then showcases this data using the MERN stack (MongoDB, Express.js, React.js, Node.js). The application provides users with a list of all available flights and sorts them based on increasing price, helping travelers find the most affordable options for their journey.
In today's fast-paced world, finding affordable flight options for travel is crucial. Flight Price Tracker simplifies this process by scraping Google Flights to gather pricing data for flights between any two specified locations. With a user-friendly interface, the application presents a sorted list of available flights, enabling travelers to quickly identify the best deals for their journey.
- Scrapes Google Flights to obtain real-time flight pricing information.
- Allows users to enter their desired source and destination locations.
- Displays a sorted list of available flights based on increasing price.
- Provides additional details about each flight, such as airlines, departure times, and layovers.
- Utilizes the MERN stack, offering a robust and scalable web application.
- Offers a seamless user experience with a responsive and intuitive interface.
To run Flight Price Tracker locally on your machine, follow these steps:
-
Clone this repository to your local machine using the following command:
git clone https://github.com/Arthraj/flight-price-tracker.git
-
Navigate to the project directory:
cd flight-price-tracker -
Install the required dependencies for both the server and the client:
cd server npm install cd ../client npm install
-
Configure environment variables:
Rename the
.env.examplefile in theserverdirectory to.envand provide the necessary configuration, such as MongoDB connection URL. -
Start the development server:
cd ../server npm run start cd ../client npm run start
-
Access the application by visiting
http://localhost:3000in your web browser.
-
Open the Flight Price Tracker application in your web browser.
-
Enter the source and destination locations for which you want to find flight prices.
-
Click the "Search" button to initiate the search process.
-
The application will scrape Google Flights and retrieve the prices of available flights between the specified locations.
-
Once the data is fetched, a list of flights will be displayed, sorted based on increasing price.
-
Enjoy finding the most affordable flight options with Flight Price Tracker!
- Puppeteer: For web scraping Google Flights to obtain flight prices.
- MERN Stack:
- MongoDB: For storing and managing flight data.
- Express.js: For building the backend server and API.
- React.js: For creating the frontend user interface.
- Node.js: For running the server-side application.
- HTML, CSS, and JavaScript: For creating the overall web application.
- Bootstrap: For enhancing the user interface and responsiveness.
I welcome contributions to improve the functionality and features of Flight Price Tracker. If you find any issues or have suggestions for enhancements, please feel free to open an issue or submit a pull request.
- Fork the repository on GitHub.
- Create a new branch from the
mainbranch for your feature or bug fix. - Make your changes and commit them with descriptive commit messages.
- Push your branch to your forked repository.
- Submit a pull request to the
mainbranch of the original repository, describing the changes you made.
Thank you for using Flight Price Tracker! If you encounter any issues or have any questions, please don't hesitate to reach out to us. Happy travels! 🛫