Hello World Node.js Example

Have questions?

Head over to the forums to search for your questions and issues or post a new one.

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 first

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

Congrats you have deployed and ran your Hello World function!