repl.it
@timmy_i_chen/

flask-boilerplate

Python

Hello world in python flask

fork
loading
Files
  • main.py
  • index.html
  • Packager files
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
from flask import Flask

app = Flask(__name__, static_folder='.', root_path='/home/runner')

@app.route('/')
def root():
    return app.send_static_file('./index.html')

if __name__ == '__main__':
    app.run(host='0.0.0.0', port='3000')