Assignment from Matt H. as follows:
Your task is to create a UI that compares two Urban Areas using the free Teleport API:
[(https://developers.teleport.org/api/)]
There are three minimum requirements we'd like implemented.
-
User should be able to select two urban areas from the Teleport API to compare.
-
Once two urban areas are selected, present the user with a comparison of the urban areas.
-
Choose at least 5 data points to compare and display those.
Use whatever technology you are most comfortable with to complete this task. Try to spend no more than 90 minutes on this task.
- Create a virtual environment
- CD to current directory
- if on Windows:
py -3 -m venv venv - if on mac/linux:
python3 -m venv venv
- Activate the environment
- Windows:
venv\Scripts\activate - mac/linux:
. venv/bin/activate
- pip install flask
- inside the venv, enter into the command prompt:
pip install flask
- pip install requests
- inside the venv, enter into the command prompt:
pip install requests
- Run the program!
- inside the venv, enter into the command prompt:
python main.py
- User should be able to select two urban areas from the Teleport API to compare.
- dropdown menus of all Urban Areas presented on home page
- Once two urban areas are selected, present the user with a comparison of the urban areas.
- Side by side comparison of UAs and their data points on uadata page
- Choose at least 5 data points to compare and display those.
- cities within Urban Areas, population sizes, life expectancies, elevations, crime rates