Skip to content

Instantly share code, notes, and snippets.

@Timtech4u
Last active July 26, 2020 21:04
Show Gist options
  • Save Timtech4u/7b420b74d83cf9e42ab0d7bfce60c8b6 to your computer and use it in GitHub Desktop.
Save Timtech4u/7b420b74d83cf9e42ab0d7bfce60c8b6 to your computer and use it in GitHub Desktop.
Hello World - Flask Web Application
runtime: python37
<h1> Hello World from Flask Web App </h1>
from flask import Flask, request
app = Flask(__name__, static_url_path='', static_folder='')
@app.route('/')
def root():
return app.send_static_file('index.html')
if __name__ == '__main__':
app.run(host='127.0.0.1', port=8080, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment