Install Flask and serve index.html

This commit is contained in:
tanner committed 2021-03-07 19:16:59 -07:00
1 parent ba63fcaf01
commit 026913013a
2 files changed
+13 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
hello world
+12 -3
View File
@@ -1,3 +1,12 @@
import socket
import sys
import time
from flask import Flask
from flask_cors import CORS
build_folder = '../client/build'
app = Flask(__name__, static_folder=build_folder, static_url_path='')
CORS(app)
@app.route('/')
def index():
return app.send_static_file('index.html')
app.run()