34 lines
1013 B
Python
34 lines
1013 B
Python
"""
|
|
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"
|