Author: Peter Koprda [email protected]
Supervisor: Ing. Vojtěch Mrázek, Ph.D. (UPSY FIT VUT) [email protected]
- Python 3
pip
package installerwget
command
Install virtual environment using pip
:
pip install virtualenv
Create the new virtual environment for the project:
python3 -m venv flask-env
Activate virtual environment:
source flask-env/bin/activate
Install dependency libraries:
pip install -r requirements.txt
Export environment variables with commands:
export FLASK_APP=run.py
export FLASK_ENV=development
Download OpenStreetMap data extracts from the Geofabrik's free download server:
wget -P app/data/static/ https://download.geofabrik.de/europe/czech-republic-latest-free.shp.zip
Unzip archive:
unzip app/data/static/czech-republic-latest-free.shp.zip -d app/data/static/
Now just run app with command:
flask run
and you are good to go! The page should render at http://127.0.0.1:5000.