This subdirectory contains the API component of PAVI.
The API code is written in python, so follows the general dependency management and python PAVI coding guidelines.
The API is built using the fastAPI framework.
During active code development, run the API server through the following command:
make run-server-devThis will run an API server which automatically reloades when code changes are saved, and make the API available at http://localhost:8000/.
To build the docker image:
make docker-imageTo build a clean docker image (without using caching, for troubleshooting potential caching issues):
make clean docker-imageThen to run the container locally:
make run-container-devWhile this is running, the API should be available at http://localhost:8080/.