Hello World on your local machine

On a .NET Core terminal, install the cloud functions template packages, using:

dotnet new -i Google.Cloud.Functions.Templates::1.0.0-beta01

Next, create a directory for your project, and use dotnet new gcf-http to create a new HTTP function:

mkdir HelloWorld
cd HelloWorld
dotnet new gcf-http

This creates two files - HelloWorld.csproj and Function.cs - in the current directory. The Function.cs is where your function code resides. Edit this to place your custom cloud function functionality.

To Test  the function:

So where does this actually 'run'?

dotnet run

Next Steps?

Need help with your GCP efforts? Start the conversation today.