Quickly prototype backend services, deployment included.
The project consists in a Python package implemented with a src layout.
Requirements:
- Python 3.9+
- Poetry
Install requirements:
$ poetry install
To run the app locally:
$ DEBUG=1 poetry run MyApi
To run the tests:
poetry run pytest
To build the Docker container:
docker build . -t myapi
To run the container:
$ docker run -p 8080:8080 myapi