Git Product home page Git Product logo

cpsc481proj's Introduction

CPSC 481 Project

The basis of this project was to create a Flight Itinerary Optimizer application. In this application, a person can set a destination from the capital of each respective state, from where they start to their target destination, and then see the resulting flight optimized path.

Installation

Backend

To run the algorithm.py file you will need to install pandas, networkx, flask, and flask-cors. To do this go into your terminal and run the command:

py -m pip install package

Replace 'package' with the required packages and you should be able to install them.

Otherwise use requirements.txt file

pip install -r requirements.txt

to uninstall the packages run...

pip uninstall -r requirements.txt -y

To start up Flask all you have to do is run the python file

python algortihm.py

This will start the backend and be running on http://localhost:5000 by default. To stop the server, use CTRL + C

Frontend

Make sure to install the LTS version of Node.js (20.x.x) here

Once installed go into the frontend directory

cd frontend
npm install
npm run dev

Once running you'll be given a local environment in http://localhost:5173 to view the page. To stop the environment, use CTRL + C

Usage

The Starting State section has a drop down menu that allows you to choose a starting destination from the 50 states.

The End State section has a drop down menu that allows you to choose a final destination from the the 50 states.

Once you have updated the Starting and End States, press the 'Go!' button and in the Result section should display the Optimized Itinerary.

cpsc481proj's People

Contributors

thecodeofdaniel avatar

Watchers

Jong Kim 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.