Google Cloud | Simple HTTP Endpoint

This example demonstrates how to setup a simple HTTP GET endpoint.

user  

Philipp Muens

Clone This Example

Step #1 -
npm install serverless -g
Step #2 -
serverless install -u https://github.com/serverless/examples/tree/master/google-node-simple-http-endpoint -n  google-node-simple-http-endpoint

Simple HTTP example

Setup

  1. Install Serverless with npm install -g serverless
  2. Install the dependencies npm install

Setting the credentials and project

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

Deployment

serverless deploy

You should see your functions URL endpoint after the deployment

Invoking

curl <the-endpoint-url>

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g