Backend for FIUBER's WhatsApp notification PIN.
-
Copy the Firebase credentials JSON (
firebase_credentials.json
) into the./
directory of the repository. -
Create a
.env
into./fastapi_app
where the variablesTWILIO_ACCOUNT_SID
,TWILIO_AUTH_TOKEN
andTWILIO_PHONE_NUMBER
are defined. -
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/
.
The following GitHub Actions Secrets are required:
DOCKERHUB_USERNAME
DOCKERHUB_TOKEN
KUBE_CONFIG_DATA
(generated withcat kubeconfig.yaml | base64 -w 0
)TWILIO_ACCOUNT_SID
TWILIO_AUTH_TOKEN
TWILIO_PHONE_NUMBER
FIREBASE_CREDENTIALS
(generated withcat firebase-credentials.json | base64 -w 0
)