Complete backend verification: fix syntax errors, create __init__.py files, add setup_db.py, update docker-compose for two PostgreSQL containers

This commit is contained in:
2026-07-18 23:02:44 +00:00
parent 3a70feaba5
commit 02ef8e36bc
27 changed files with 687 additions and 121 deletions
+7 -7
View File
@@ -1,13 +1,13 @@
# Cockatrice Web Application
# MTG Online Web Application
A modern web-based implementation of the Cockatrice multiplayer Magic: The Gathering platform.
A modern web-based implementation of the MTG Online multiplayer Magic: The Gathering platform.
## Features
- **User Authentication**: Secure JWT-based authentication with bcrypt password hashing
- **Deck Building**: Full-featured deck editor with import/export in multiple formats
- **Real-Time Multiplayer**: WebSocket-based game server for live gameplay
- **Protocol Compatibility**: Compatible with Cockatrice protocol buffer messages
- **Protocol Compatibility**: Compatible with MTG Online protocol buffer messages
- **Card Database**: Integration with MTJSON for comprehensive card data
- **Admin Tools**: Comprehensive moderation and administration dashboard
@@ -33,8 +33,8 @@ A modern web-based implementation of the Cockatrice multiplayer Magic: The Gathe
1. **Clone the repository**
```bash
git clone https://github.com/yourusername/cockatrice-web.git
cd cockatrice-web
git clone https://github.com/yourusername/mtgonline-web.git
cd mtgonline-web
```
2. **Create a virtual environment**
@@ -62,7 +62,7 @@ cp .env.example .env
```bash
# Create PostgreSQL database
createdb cockatrice
createdb mtgonline
# Run migrations (when Alembic is set up)
alembic upgrade head
@@ -81,7 +81,7 @@ Open http://localhost:8000/docs to view the FastAPI Swagger UI.
## Project Structure
```
cockatrice-web/
mtgonline-web/
├── backend/
│ ├── app/
│ │ ├── core/ # Core configuration and utilities