/chuck-norris-app-engine

GCP App Engine Example

Primary LanguageHTML

chuck-norris-app-engine

A flask application that displays random chuck norris facts

Prerequisites

Documents

Applications

App Engine Folder structure

  • app.yaml
  • templates/
  • static/
  • main.py
  • requirements.txt

Details

  1. app.yaml: Deployment descriptor for your application
  2. templates/: This is where you’ll put the Jinja2 templates for your app.
  3. static/: This directory contains the public CSS, JavaScript, images and other files that you want to make public via your app.
  4. main.py: Python file that has the application logic
  5. requirements.txt: This file lists all of the Python packages that your app depends on.

Deploying the application to App Engine

Navigate to the directory and run the following command -> gcloud app deploy

View the Web Application

gcloud app browser