Google Cloud Functions backend for Cola Inventory PWA
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
deliver
fetch
order
.gitignore
README.md

README.md

Cola Inventory Functions

This is a collection of Google Cloud Functions for Go that provide the backend for Cola Inventory PWA.

Folder structure

  • config/ provides shared functionality for the project.
  • deliver/, fetch/, order/ contain the deployable Google Cloud Functions.

Deploying

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

Development

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.