From 2a5f612fe9b736b21972a5c554e2e4fe5b0b925c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 11 Mar 2021 14:32:50 +0200 Subject: [PATCH] Add main.py Following basic Flask on Google App Engine tutorial: https://realpython.com/python-web-applications/#build-a-basic-python-web-application --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..6f424e9 --- /dev/null +++ b/main.py @@ -0,0 +1,13 @@ +from flask import Flask + + +app = Flask(__name__) + + +@app.route("/") +def index(): + + return "Congratulations, it's a web app!" + +if __name__ == "__main__": + app.run(host="127.0.0.1", port=8080, debug=True)