Following things need to be installed:
- flask: the framework to to the backend
- flask_cors: to handle the cross-origin-exception Prerequisite
- pip install flask
- pip install flask-cors
- pip install geopandas
- pip install xlrd
- pip install Rtree
To stop running at port :5000 run following:
- sudo lsof -i:5000
- kill -9 xxxx
The project is run by the following command: FLASK_APP=starter.py flask run
The file path looks as follows:
- starter.py
- index.html
- static/ 3.1 css/ style.css 3.2 js/ mapscript.js 3.3 libraries/ leaflet/ jquery.min.js