This commit is contained in:
2025-12-22 14:47:25 -05:00
parent d4e859f9a7
commit 00e9eb8986
81 changed files with 13933 additions and 0 deletions

20
main.py Normal file
View File

@@ -0,0 +1,20 @@
import os
from backend.app import create_app, socketio
def main():
"""Run the Flask application with SocketIO"""
app = create_app()
# Get port from environment or default to 5000
port = int(os.environ.get('PORT', 5000))
print(f"Starting Trivia Game server on http://localhost:{port}")
print(f"Environment: {os.environ.get('FLASK_ENV', 'development')}")
# Run with socketio instead of app.run() for WebSocket support
socketio.run(app, host='0.0.0.0', port=port, debug=True)
if __name__ == "__main__":
main()