[aw]sgi firestore middleware
Install bazel as described on https://docs.bazel.build/versions/3.7.0/install.html
# appengine enables the datastore API that's firestore
gcloud services enable appengine.googleapis.com
# generate
gcloud alpha firestore databases create --project=project-id --region=region
pip install -r requirements-dev.txt
pre-commit install
interrogate -v .
export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/service-account-file.json"
Generate a Service Account credentials by visiting
Firebase Console > Project Settings > Service Accounts
click on GENERATE NEW PRIVATE KEYS.
You will need it in the firestore/exampletokengenerator/auth.html.
- https://github.com/tiangolo/fastapi
- https://fastapi.tiangolo.com/advanced/middleware/
- https://fastapi.tiangolo.com/tutorial/security/get-current-user/
- https://koxudaxi.github.io/datamodel-code-generator/
- https://pydantic-docs.helpmanual.io/datamodel_code_generator/#example
- https://developers.google.com/protocol-buffers/
- https://developers.google.com/protocol-buffers/docs/pythontutorial