Git Product home page Git Product logo

travel's Introduction

Travel App

This is an app made using the MERN stack which would provide the user with the fastest or the cheapest route between cities.

Technologies

Project is created with:

  • Reactjs, Bootstrap (Frontend)
  • Nodejs, Express (Backend)
  • MongoDB (Database)

About

  • The frontend and the backend communicates with the help of axios package.
  • The dropdown present on the client-side was populated with the help of the '/places' endpoint of the server-side.
  • For finding the fastest and the cheapest route between the cities provided in the data.json file given to us, Graph and Priority Queue data structures were used. The Graph was populated with the given data and Dijkstra algorithm was used with the source and destination acquired from the post request on '/find-route' endpoint.
  • As the Dijkstra algo only works for the non-negative weighted edges, in the case of finding the cheapest route, every instance of negative effective cost ( cost - discount ) was taken to be 0 EUR.
  • If the source and destination are not chosen differently or either of them is empty, the page shows the user some error. By default, the route to be shown is set to be the fastest one.

The site has been deployed on Netlify : https://travel-app-sachi.netlify.app/ And it's backend on Heroku : https://back-travel-app.herokuapp.com/

travel's People

Contributors

sachigupta22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.