Skip to content

htl-leo-itp-2325-4-5BHITM/drivers

Repository files navigation

Fahrgemeinschafts - App

Building

The project has 2 parts: frontend and backend

Frontend

Development is done by:

cd ./frontend
npm install
npm start

Backend

Development is done by: (Tutorial from moodle minikube,...)

cd ./backend
podman machine start  
minikube start --driver=podman

And: (use from 'get pods' name instead "pos<tab>-<tab>")

cd ./k8s
kubectl get pods
kubectl port-forward pos&lt;tab&gt;-&lt;tab&gt; 5433:5432

Keycloak

ssh drivus

Kubectl

im k8s ordner
kubectl apply -f postgresql.yaml
kubectl delete -f postgresql.yaml 

VSCode
kubectl port-forward pods/postgres-78cdcdcc55-486sw 5432:5432 -n default

kubectl port-forward postgres-78cdcdcc55-zxbdm 5432:5432
 

Fehlerbehebeungen

###password/user/ (Quarkus) Fehler kann sicht nicht verbinden / connection refused: podman / minikube löschen und nochmal installieren muss dann auch kubectl installieren

1. Delete Setup

cd. backend

minikube delete
podman machine stop
podman machine rm podman-machine-default

2. setup your environment (once)

podman machine init --cpus 2
podman machine set --rootful
podman machine start
minikube start

on OSX:

minikube --driver=podman start
minikube addons enable dashboard
minikube addons enable metrics-server
minikube stop
podman machine stop