commit f5ac44886b220ebf400e500bfccce037889ec9aa Author: tototomate123 Date: Tue Feb 24 16:18:19 2026 +0100 initial setup diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eade5d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.venv/ +__pycache__/ +instance/ +*.pyc +.env \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..fd1324b --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,12 @@ +from flask import Flask +from flask_socketio import SocketIO + +sIO = SocketIO() + +def create_app(): + app = Flask(__name__) + app.config['SECRET_KEY'] = 'dev' + + sIO.init_app(app) + + return app \ No newline at end of file diff --git a/app/config.py b/app/config.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..64bdc67 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,20 @@ +bidict==0.23.1 +blinker==1.9.0 +chess==1.11.2 +click==8.3.1 +dnspython==2.8.0 +eventlet==0.40.4 +Flask==3.1.3 +Flask-Login==0.6.3 +Flask-SocketIO==5.6.1 +greenlet==3.3.2 +h11==0.16.0 +itsdangerous==2.2.0 +Jinja2==3.1.6 +MarkupSafe==3.0.3 +python-chess==1.999 +python-engineio==4.13.1 +python-socketio==5.16.1 +simple-websocket==1.1.0 +Werkzeug==3.1.6 +wsproto==1.3.2 diff --git a/run.py b/run.py new file mode 100644 index 0000000..56719cd --- /dev/null +++ b/run.py @@ -0,0 +1,6 @@ +from app import create_app, sIO + +app = create_app() + +if __name__ == "__main__": + sIO.run(app, debug=True) \ No newline at end of file