This repository is part of the coffee rating application project. The project provides a rating appliation for coffees where its possible to add/delete and rate different coffee beans. The project consists of the following repositories:
- Frontend - A react typescript progressive web app
- Backend - Fastapi based python backend
- Resizer - Python based image resizer listening on kafka messages
- Helm Chart - Helm Chart deploying front and backend together with database and minio hem charts
- GitOps - Gitops repository for ArgoCD reflecting deployed applications for test and prod env
- Install pre-commit hocks and install them via
pre-commit install
poetry run ./scripts/test.sh
poetry run ./scripts/format.sh
poetry run python3 -m coffee_backend
docker build -t coffee_backend:v1 -f ./Containerfile .
- Build container first
docker run -it -p 9000:8000 --name coffee_backend coffee_backend:v1
In order to execute local end to end test for the coffee app its possible to start the docker-compose inside the devservice directory. It will spin up an environment with frontend, backend, resizer as well as all dependent systems. In order to work properly the hostname "keycloak" must resolve to localhost. The following environment variables need to be defined to point to the local directories of the repositories: FRONTEND_PATH= BACKEND_PATH= RESIZER_PATH=