$ export FLASK_APP=example
$ export FLASK_ENV=development
$ flask run
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "<h1>Hello World!</h1>"
if __name__ == "__main__":
from waitress import serve
serve(app, host="0.0.0.0", port=8080)