Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.2 KB

README.md

File metadata and controls

68 lines (48 loc) · 1.2 KB

Bachelor thesis

Estimation of the Probability of Occurrence of Persons in an Area


Author: Peter Koprda [email protected]

Supervisor: Ing. Vojtěch Mrázek, Ph.D. (UPSY FIT VUT) [email protected]

Requirements

  • Python 3
  • pip package installer
  • wget command

Setup

Create virtual environment

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 libraries

Install dependency libraries:

pip install -r requirements.txt

Export environment variables with commands:

export FLASK_APP=run.py
export FLASK_ENV=development

Download data

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/

Run the app

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.