Backend for FIUBER's ratings
- Copy the Firebase credentials JSON (
firebase_credentials.json
) into thesrc
directory of the repository. - Create a
.env
where the variablesPOSTGRES_USER
,POSTGRES_PASSWORD
,POSTGRES_HOST
andPOSTGRES_DB
are defined - Start the PostgreSQL instance
docker run -it --rm -p 5432:5432 --env-file .env postgres
- Install dependencies
poetry install
poetry self add poetry-dotenv-plugin
- Start the server:
poetry run python fastapi_app/app.py
The API will be available on http://localhost:8000/
.
poetry run pytest
The following GitHub Actions Secrets are required:
DOCKERHUB_USERNAME
DOCKERHUB_TOKEN
KUBE_CONFIG_DATA
(generated withcat kubeconfig.yaml | base64 -w 0
)POSTGRES_USER
POSTGRES_DB
POSTGRES_PASSWORD
POSTGRES_HOST
FIREBASE_CREDENTIALS
(generated withcat firebase-credentials.json | base64 -w 0
)