An HTTP triggered Python Cloud Functions template.
Install dependencies:
pip3 install -r requirements.txtRun the function:
functions-framework --target=hello_http --debug
...
* Running on http://192.168.1.74:8080/ (Press CTRL+C to quit)
...Inside the scripts folder, run test_local.sh to test the function locally:
./test_local.sh
Hello World!Run setup.sh to enable required services:
./setup.shRun deploy.sh to deploy to Google Cloud:
./deploy.shYou can test with Invoke function via HTTP in Cloud Code or with gcloud.
Run test_cloud.sh to test the function in Google Cloud:
./test_cloud.shWhen you're done, you can cleanup created resources:
./cleanup.sh