GoogleCloudPlatform/endpoints-quickstart

Name: endpoints-quickstart

Owner: Google Cloud Platform

Description: Cloud Endpoints Quickstart Scripts

Created: 2017-05-04 17:24:17.0

Updated: 2018-05-10 22:57:15.0

Pushed: 2018-04-05 00:19:54.0

Homepage:

Size: 2419

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Cloud Endpoints Quickstart Scripts

These scripts help you get started with Google Cloud Endpoints quickly and easily. They are designed for use with the Endpoints Quickstart Guide.

The included API lets you query the name of an airport from its three-letter IATA code.

This is an example application, not an official Google product.

Before you begin
  1. Create a new Cloud Platform project.

  2. Enable billing for your project.

Running the scripts
Option 1: Use Google Cloud Shell
  1. Open the Google Cloud Platform Console.

  2. Click the Cloud Shell icon at the top of the screen. Cloud Shell

Option 2: Test Locally in Linux or Mac OS X

These scripts will not work in Windows. If you have a Windows machine, we recommend you use Google Cloud Shell.

  1. Download and install the Google Cloud SDK, which includes the gcloud command-line tool.

  2. Initialize the Cloud SDK.

    gcloud init
    
  3. Set your default project (replace YOUR-PROJECT-ID with the name of your project).

    gcloud config set project YOUR-PROJECT-ID
    
Usage
cd scripts
./deploy_api.sh; : Deploy the API.
./deploy_app.sh; : Deploy the backend app.
./query_api.sh; : Query the API.
./generate_traffic.sh; : Send traffic to the API.
./generate_traffic.sh ASDF; : Send error traffic to the API.
# And after you're done...
./delete_project.sh; : Delete your project.

Note: these scripts will create an App Engine project and deploy an app!

Licensing

See LICENSE.

Special Thanks

Thanks to David Megginson for providing the airport data!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.