Hello World Node.js Example
Docs Version: 1.14.0
Edit on github

#Hello World Node.js Example

Make sure serverless is installed and you have setup your credentials.

#1. Create a service

serverless create --template google-nodejs --path my-service

#2. Install Provider Plugin

npm install in the service directory.

#3. Update the provider property

Update the credentials and your project property in the serverless.yml file.

#4. Deploy

serverless deploy

#5. Invoke deployed function

serverless invoke --function helloWorld

In your terminal window you should see a response from the Google Cloud

Congrats you have just deployed and run your Hello World function!