Requirements: Web Browser, Python
To use Route Finder on the production server, visit our website.
To run Route Finder on a local machine, make sure Python is installed. Once installed, run the following command in the command line in order to install the required dependencies (Flask, etc.):
pip install -r requirements.txt
To startup the server, run the following command:
python backend.py config.json
If the output resembles the above, the local server deployed successfully. The port on which the server is launched will be displayed in the output given by Flask (Launching flask app on port XXXX
)
To access the app on a local machine, visit "http://localhost:XXXX", substituting the port number found in the previous step.
To terminate the local server, press ^C (Control-C) in the command window.
The config-blank.json
may be renamed into config.json
and filled out. The config requires the following parameters:
port
: The port to host the web server onsecret_key
: Used by Flask for session security. This can be set to any nonempty Stringgapi_key
: A Google Maps API key