Files
mtgonline/backend/app/__init__.py
T

34 lines
992 B
Python

"""
MTG Online Web Application
A modern web-based implementation of the MTG Online multiplayer 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 MTG Online protocol buffer messages
## License
MIT License
"""
__version__ = "0.1.0"
__author__ = "MTG Online Web Team"