Initial commit of mtgonline project

This commit is contained in:
2026-07-18 04:57:40 +00:00
commit 86c12376f8
1870 changed files with 547994 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
"""
Cockatrice Web Application
A modern web-based implementation of the Cockatrice multiplayer Magic: The Gathering platform.
Built with FastAPI, WebSocket, and protocol buffer compatibility.
## Features
- User authentication and authorization
- Deck building and storage
- Real-time multiplayer game rooms
- Protocol buffer message compatibility
- Card database integration
- Admin moderation tools
## Running the Application
1. Install dependencies: `pip install -r requirements.txt`
2. Set environment variables or create `.env` file
3. Run: `uvicorn app.main:app --reload`
4. Access API docs at `http://localhost:8000/docs`
## Architecture
- Backend: FastAPI with async SQLAlchemy and WebSocket support
- Database: PostgreSQL with async driver
- Authentication: JWT tokens with bcrypt password hashing
- Game Server: WebSocket-based real-time multiplayer
- Protocol: Compatible with Cockatrice protocol buffer messages
## License
MIT License
"""
__version__ = "0.1.0"
__author__ = "Cockatrice Web Team"