Getting started

To get started with the App Engine standard environment, let's build a simple Python application. The source code for this exercise is in chapter_02/example_01 of this book's Git repository. In this directory, you'll find a few files:

  • The app.yaml file is as follows:
runtime: python27api_version: 1threadsafe: truedefault_expiration: "30s"env_variables:  COLORS_URL: https://colors-dot-{}/colorshandlers:- url: /admin/.*  script: main.app  login: admin- url: /api/.*  script: main.app- url: /  static_files: index.html  upload: index.html

The app.yaml configuration file informs App Engine how a given service should be managed. At a minimum, a configuration file will define the application runtime, the API version, and one or more ...

Get Building Google Cloud Platform Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.