API in Flask?
https://flask.palletsprojects.com/en/2.2.x/quickstart/
https://www.youtube.com/watch?v=GMppyAPbLYk&ab_channel=TechWithTim
--- Hosting
https://www.pythonanywhere.com/?affiliate_id=00535ced
- Install python
- Check if pip is installed:
pip --version
- Configure your PATH
- Clone this repository:
git clone https://github.com/AdamSioud/Trondheim-Kommune-Kundeprosjekt-API.git
- In the parent folder of the repository, create a new environment:
python -m venv ./venv
- Activate the environment:
.\venv\Scripts\activate
- Upgrade pip and install wheel:
python -m pip install -U pip wheel setuptools
- In
venv
create a new folder:geopandas dependencies
- Go here and search for these packages
GDAL, Pyproj, Fiona, Shapely
according to your version of python and 32 or 64 bit (E.g. for Python v3.7x (64-bit), GDAL package should be GDAL‑3.1.2‑cp37‑cp37m‑win_amd64.whl.) put them in the folder - Go in the folder:
cd "geopandas dependencies"
pip install
on each FILE following this orderGDAL
,pyproj
,Fiona
,Shapely
- Go in the project:
cd ..\..\Trondheim-Kommune-Kundeprosjekt-API
- Run
pip install -r requirements.txt
I followed the instructions here
- Install python
- Check if pip is installed:
pip --version
- Clone this repository:
git clone https://github.com/AdamSioud/Trondheim-Kommune-Kundeprosjekt-API.git
- In the parent folder of the repository, create a new environment:
python -m venv ./venv
- Activate the environment:
./venv/Scripts/activate
- Upgrade pip and install wheel:
python -m pip install -U pip wheel setuptools
- Install GDAL:
brew install gdal
- Search for file
Python.h
(probably here:/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Headers
) - Depending on your terminal, open the configuration file (e.g. for zsh:
open -e $path_of_home$/zprofile
) and writeexport C_INCLUDE_PATH=$path_to_Python.h_folder$
pip install
on the following packagesFiona Pyproj Shapely
- Go in the project:
cd ../../Trondheim-Kommune-Kundeprosjekt-API
- Run
pip install -r requirements.txt