Create a virtualenv and activate it:
python3 -m venv venv
. venv/bin/activateOr windows:
py -3 -m venv venv
venv\Scripts\activate.batInstall all the dependencies.
pip3 install -r requirements.txtStart the API
python3 api/main.pyBuild the Docker container.
docker build -t image-generator .Run the docker container and map the internal port to external port
docker run -p 5001:5001/tcp image-generatorEndpoints are documented using Swagger. To access the interactive documentation got to:
/swagger