This is a collection of Google Cloud Functions for Go that provide the backend for Cola Inventory PWA.
config/
provides shared functionality for the project.deliver/
,fetch/
,order/
contain the deployable Google Cloud Functions.
You can deploy the functions using the gcloud
command-line tool:
$ gcloud functions deploy NAME --entry-point ENTRY_POINT --set-env-vars PROJECT_ID=YOUR_PROJECT_ID --runtime go111 --trigger-http
Each function directory has a cmd/
directory used for local testing. By running cmd/main.go
you can start a local HTTP server which registers the parent function as an HTTP handler.