/gcp-python-webapp

Deploying Hello world Python App on Google Cloud Platform's App Engine.

Primary LanguagePythonMIT LicenseMIT

GCP-Python-WebAPP

Deploying Hello world Python App on Google Cloud Platform's App Engine.

Note: Trust me, if I say “App Engine cost you several bucks.” unless you have credits, don’t go further.

Creating Project

1.Go to GCP Console Home,Click on cloud shell icon. it will open shell cmd prompt on bottom screen

  1. Click on Little pen icon on top right of shell. it will take you to cloudshell UI site.

  1. Create a new folder by rigth clicking on your root directory.

  1. Create app.yaml, main.py, requirements.txt files in newfolder directory

Folder Structure

├── pythondemo
│   ├── app.yaml
│   ├── main.py
│   └── requirements.txt

Deploy App

in your folder directory, run following command. it will take sometime to deploy your app.

gcloud app deploy

Browse APP

once deployed, run this command and it will show deployed address and paste this address in your browser. it will show deployed python Webapp response.

gcloud app browse