- FastAPI is used for HTTP routing
The following tools are needed:
- Python > 3.8
- Pip
- Make
These steps are required to setup the development enviroment:
git clone git@github.com:hfu-graph-ml/backend.git
make init
On Linux the VENV activation is straight forward:
source .venv/Scripts/activate
There are slight differences between CMD and PowerShell in Windows (as always). It is recommended to use PS Core, as it is more modern and resembles a Linux shell more closely (cd, rm, ...)
# On CMD
.venv/Scripts/activate.bat
# On PS (Core)
.venv/Scripts/Activate.ps1
To install dependencies run:
make install
After that we can run the server via make run
.
First make sure you activated the VENV. Then run:
pip install <package>
pip freeze > requirements.txt