GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodejs-docs-samples/endpoints/getting-started at master · enterstudio/nodejs-docs-samples

Expand file tree

/

getting-started

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

getting-started

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
test
test
 
 
Dockerfile.custom
Dockerfile.custom
 
 
README.md
README.md
 
 
app.js
app.js
 
 
app.yaml
app.yaml
 
 
container-engine.yaml
container-engine.yaml
 
 
openapi.yaml
openapi.yaml
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

README.md

Outline

Google Cloud Endpoints sample for Node.js

This sample demonstrates how to use Google Cloud Endpoints using Node.js.

For a complete walkthrough showing how to run this sample in different environments, see the Google Cloud Endpoints Quickstarts.

Running locally

Refer to the appengine/README.md file for instructions on running locally.

Send an echo request

Choose your local or production server:

# If you're running locally, you won't need an API key.
$ export ENDPOINTS_HOST=http://localhost:8080

$ export ENDPOINTS_HOST=https://PROJECT-ID.appspot.com
$ export ENDPOINTS_KEY=AIza...

Send the request:

$ curl -vv -d '{"message":"foo"}' -H 'Content-Type: application/json' "${ENDPOINTS_HOST}/echo?key=${ENDPOINTS_KEY}"

If you're running locally, you won't need an API key.

Sending authenticated requests

No Node.js client is written yet, but you can try the Python client found here. It will send authenticated JWT requests using a Google Cloud service account, or using a three-legged OAuth flow.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.