Giter VIP home page Giter VIP logo

endpoints-quickstart's Introduction

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!

endpoints-quickstart's People

Contributors

p42ul avatar gunsch-google avatar inklesspen avatar navinger avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.