Skip to content

Latest commit

 

History

History
 
 

helloworld

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Platform logo

Google Cloud Functions - Hello World sample

See:

Deploy and run the sample

See the Cloud Functions Hello World tutorial.

Run the tests

  1. Read and follow the prerequisites.

  2. Install and run the Google Cloud Functions Emulator

     npm install -g @google-cloud/functions-emulator
     functions start
    
  3. Install dependencies:

     npm install
    
  4. Set the following environment variables:

     export GCF_REGION=us-central1
     export FUNCTIONS_TOPIC=[YOUR_PUBSUB_TOPIC]
     export FUNCTIONS_BUCKET=[YOUR_CLOUD_STORAGE_BUCKET]
    
  5. Run the tests:

     npm test