Skip to content

Instantly share code, notes, and snippets.

@arpitbbhayani
Created July 20, 2019 15:27
Show Gist options
  • Save arpitbbhayani/e7f3ca1eef174f23c841ae9ad4256b33 to your computer and use it in GitHub Desktop.
Save arpitbbhayani/e7f3ca1eef174f23c841ae9ad4256b33 to your computer and use it in GitHub Desktop.
flask-static-server
# Hangman UI
#
# Installing required packages
# $ pip install flask
#
# Run
# $ python ui.py
#
from flask import Flask
app = Flask(__name__, static_url_path='/')
@app.route('/')
def index():
return app.send_static_file('./index.html')
app.run(host="0.0.0.0", port=3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment