Skip to content

evaboen/Trondheim-Kommune-Kundeprosjekt-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trondheim-Kommune-Kundeprosjekt-API

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

Installation (WINDOWS)

  1. Install python
  2. Check if pip is installed: pip --version
  3. Configure your PATH
  4. Clone this repository: git clone https://github.com/AdamSioud/Trondheim-Kommune-Kundeprosjekt-API.git
  5. In the parent folder of the repository, create a new environment: python -m venv ./venv
  6. Activate the environment: .\venv\Scripts\activate
  7. Upgrade pip and install wheel: python -m pip install -U pip wheel setuptools
  8. In venv create a new folder: geopandas dependencies
  9. 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
  10. Go in the folder: cd "geopandas dependencies"
  11. pip install on each FILE following this order GDAL, pyproj, Fiona, Shapely
  12. Go in the project: cd ..\..\Trondheim-Kommune-Kundeprosjekt-API
  13. Run pip install -r requirements.txt

I followed the instructions here

Installation (MAC)

  1. Install python
  2. Check if pip is installed: pip --version
  3. Clone this repository: git clone https://github.com/AdamSioud/Trondheim-Kommune-Kundeprosjekt-API.git
  4. In the parent folder of the repository, create a new environment: python -m venv ./venv
  5. Activate the environment: ./venv/Scripts/activate
  6. Upgrade pip and install wheel: python -m pip install -U pip wheel setuptools
  7. Install GDAL: brew install gdal
  8. Search for file Python.h (probably here: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Headers)
  9. Depending on your terminal, open the configuration file (e.g. for zsh: open -e $path_of_home$/zprofile) and write export C_INCLUDE_PATH=$path_to_Python.h_folder$
  10. pip install on the following packages Fiona Pyproj Shapely
  11. Go in the project: cd ../../Trondheim-Kommune-Kundeprosjekt-API
  12. Run pip install -r requirements.txt

About

API in Flask?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages