Skip to content

trueCii/chuck-norris-app-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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