pip install google-cloud-firestore
Init GCP
gcloud auth login
gcloud config set project PROJECT_ID
# enable service (for new project and only first time)
gcloud services enable run.googleapis.com
# setup key for debugging
# change path if needed
export GOOGLE_APPLICATION_CREDENTIALS="path/to/xxxxxx-xxxxxx-xxxxxxxxxxxx.json"
Create firestore
gcloud alpha firestore databases create \
--database=note \
--location=asia-east1 \
--type=firestore-native
python -m venv venv
source venv/bin/activate
pip install functions-framework
pip install -r function/note/requirements.txt
./debug.sh
./deploy.sh