Welcome to What_A_Trip, a travel planner application that helps you find the shortest path between two cities with the option of using at most one plane in your journey. The project is built using Node.js, Express.js, and JavaScript. The application visually displays the cities, their distances, and the mode of transport (bus or plane) using yellow and green lines, respectively, on an interactive graph using vis.js.
Check out the live demo of the application: What_A_Trip Live Demo
Follow these instructions to set up the project on your local machine.
Make sure you have the following tools installed on your system:
- Node.js (https://nodejs.org/)
- Git (https://git-scm.com/)
-
Clone the repository using Git:
git clone https://github.com/your-username/What_A_Trip.git
-
Change into the project directory:
cd What_A_Trip -
Install the required dependencies:
npm install
-
Start the server:
npm run dev
-
Open your web browser and navigate to
http://localhost:3000to access the application. -
Select the source city and destination city from the list of available cities.
-
Click on the "Find Shortest Path" button to calculate the shortest path between the selected cities.
-
The application will display the shortest path on the graph, considering at most one plane in the journey.
We welcome contributions to make What_A_Trip even better! If you have any suggestions, bug reports, or improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
- The project utilizes vis.js for interactive graph visualization.
- Special thanks to the open-source community for their valuable contributions and support.
If you have any questions or feedback, you can reach us at shahidakhtar016@gmail.com.
Happy traveling with What_A_Trip!
