CS460-Projects/chatserver/webclient.py

10 lines
No EOL
261 B
Python

from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html') # Serve the HTML client
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8080) # Run the web client on port 8080