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 installTo run the app locally:
$ DEBUG=1 poetry run MyApiTo run the tests:
poetry run pytestTo build the Docker container:
docker build . -t myapiTo run the container:
$ docker run -p 8080:8080 myapi