Initial version

This commit is contained in:
Juan José Gutiérrez de Quevedo Pérez 2026-01-30 10:06:46 +01:00
commit 50d66c2985
Signed by: ps
GPG key ID: D7026C21E81584BC
5 changed files with 1117 additions and 0 deletions

18
app.py Normal file
View file

@ -0,0 +1,18 @@
from flask import Flask, send_from_directory
import os
app = Flask(__name__, static_folder='static', static_url_path='/static')
@app.route('/')
def index():
return send_from_directory('static', 'index.html')
# Serve static files
@app.route('/<path:filename>')
def static_files(filename):
return send_from_directory('static', filename)
if __name__ == '__main__':
import sys
port = int(sys.argv[1]) if len(sys.argv) > 1 else 5000
app.run(debug=True, host='0.0.0.0', port=port)