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
Size: 2419
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Create a new Cloud Platform project.
Enable billing for your project.
Open the Google Cloud Platform Console.
Click the Cloud Shell icon at the top of the screen.
These scripts will not work in Windows. If you have a Windows machine, we recommend you use Google Cloud Shell.
Download and install the Google Cloud SDK, which includes the gcloud command-line tool.
Initialize the Cloud SDK.
gcloud init
Set your default project (replace YOUR-PROJECT-ID with the name of your project).
gcloud config set project YOUR-PROJECT-ID
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!
See LICENSE.
Thanks to David Megginson for providing the airport data!