- Python 3.11+
- Poetry installed
- Docker installed
cd docker
docker-compose up --build
- Install Tilt
tilt up
Tilt will run ./docker/docker-compose.yaml
, observes changes at ./todoapp
and automatically rebuilds the containers.
Clean up:
tilt down
Rename the .env.sample
file to .env
within the project folder or export the MONGODB_URI
environment variable manually with $ export MONGODB_URI=<YOUR_URI>
. The application can be started in development mode via Poetry.
poetry install
poetry run start
If you want to run tests and checks locally in an isolated environment. Useful if you want to make sure that all tests pass before passing new code to a CI/CD pipeline.
Enter poetry shell where all the dependencies are available:
poetry shell
Run all tests and stylechecks.
tox
Run tests and stylechecks seperately.
tox -e test_app
tox -e checks
sh scripts/push_new_tag.sh vX.X.X