Skip to content

andimiya/cloud-function-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic setup to run and deploy a Google Cloud Function locally

Run through these environment setup steps first: https://cloud.google.com/nodejs/docs/setup

  • Create a GCP Project
  • Authenticate your CLI with your GCP Project: gcloud auth application-default login
  • Clone this template
  • Update your bucket name in deploy.sh
    • When a file is put in this bucket, your GCP function will be triggered
  • Update your function name in deploy.sh
    • This will be the name of your function when you view it in the GCP console
  • Run npm install
  • Run npm start for local development
  • Run npm deploy to deploy your function to GCP
  • After a successful deploy, the hosted endpoint will appear in your CLI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published