Skip to content

andifg/coffee_backend

Repository files navigation

Coffee App Backend

Context

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

Prerequesits

  • Install pre-commit hocks and install them via
pre-commit install

Test

poetry run ./scripts/test.sh

Format & Lint

poetry run ./scripts/format.sh

Run locally without container

poetry run python3 -m coffee_backend

Build locally

docker build -t coffee_backend:v1 -f ./Containerfile .

Run locally with container

  • Build container first
docker run -it -p 9000:8000  --name coffee_backend coffee_backend:v1

Local End To End Dev & Test Environment

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=

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages