Daniel Schildt 6b6a494158
docs(google) update hello-world example's invoke
If a new user creates a new service with the `google-nodejs` template,
the pre-configured function is named as `first` instead of `helloWorld`.

More details from the configuration file of the template:
- https://github.com/serverless/boilerplate-googlecloudfunctions-nodejs/blob/master/serverless.yml#L22
2018-01-19 05:06:51 +02:00

1.1 KiB

Read this on the main serverless docs site

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 just deployed and run your Hello World function!