Skip to content

curtismenmuir/serverless-cloud-function-firestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-cloud-function-firestore

Sample project for NodeJS GCP Cloud Function using Serverless framework.

Creates sample collections and documents in connected Firestore DB. Creates 2 similar functions (createDB and createDB2) which essentially create the same DB records and collections. Demonstrates running multiple functions from same project.

Update serverless.yml to include projectID and path to keyfile for GCP project service account. To generate GCP keyfile, follow instructions at: https://serverless.com/framework/docs/providers/google/guide/credentials/

Install Serverless framework (community edition) and deploy from root of project with "serverless deploy" command.

Remove online instance with "serverless remove" command.

About

Sample project for NodeJS GCP Cloud Function using Serverless framework. Creates example collections and documents in Firestore DB.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors