Skip to content

Instantly share code, notes, and snippets.

@apinanyogaratnam
Last active February 13, 2022 15:01
Show Gist options
  • Save apinanyogaratnam/b53533521648a0ed3a9bf8342fb93716 to your computer and use it in GitHub Desktop.
Save apinanyogaratnam/b53533521648a0ed3a9bf8342fb93716 to your computer and use it in GitHub Desktop.
run a flask app with minimal code
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return {'test': "Hello, World!"}
if __name__ == '__main__':
app.run(debug=True, host='localhost', port=8000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment