0% found this document useful (0 votes)
2 views2 pages

Ex 3

This document provides a step-by-step guide to install Google App Engine and create a simple 'Hello World' web application using Python and Flask. It includes instructions for checking Python installation, creating project folders, writing necessary code files, installing required libraries, and running the application. Finally, it explains how to view the output in a web browser.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Ex 3

This document provides a step-by-step guide to install Google App Engine and create a simple 'Hello World' web application using Python and Flask. It includes instructions for checking Python installation, creating project folders, writing necessary code files, installing required libraries, and running the application. Finally, it explains how to view the output in a web browser.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

INSTALL GOOGLE APP ENGINE.

CREATE HELLO WORLD APP AND OTHER


SIMPLE WEB APPLICATIONS USING PYTHON/JAVA.

Step 1: Check Python Installation


1. Open Command Prompt (CMD)
2. Type: py –version
It should show Python version
Step 2: Create Project Folder
1. Go to Desktop
2. Create a folder named:
my-flask-app
Step 3: Open CMD in That Folder

Type this in CMD: cd C:\Users\clemm\OneDrive\Desktop\my-flask-app (copy and


paste your floder location)

Check folder using : dir

Step 4: Create [Link] File


In CMD type: notepad [Link]

Type this code:


from flask import Flask

app = Flask(__name__)

@[Link]("/")
def hello():
return "Hello, World!"

if __name__ == "__main__":
[Link](host="[Link]", port=8080, debug=True)
Save and close Notepad.
Step 5: Create [Link] File
In CMD type: notepad [Link]
Write this: Flask
Save and close Notepad.
Step 6: Install Flask Library
In CMD type: py -m pip install Flask
Flask will be installed successfully.
Step 7: Run Flask Application
In CMD type: py [Link]

Output will show like:


Running on [Link]
Step 8: View Output in Browser
1. Open Chrome
2. Type this URL:
[Link]
Output will display:
Hello, World!

You might also like