Final project commit: MTGJSON data integration and backend API

This commit is contained in:
wall-o
2026-07-20 01:09:45 +00:00
parent b170dfd577
commit db01e29a54
37 changed files with 9674 additions and 198 deletions
+14 -21
View File
@@ -1,27 +1,20 @@
# Application Settings
APP_NAME=Cockatrice Web
APP_VERSION=0.1.0
DEBUG=True
# MTG Online - Environment Configuration
# Database (PostgreSQL)
DATABASE_URL=postgresql+asyncpg://cockatrice_user:cockatrice_password@localhost:5432/cockatrice
# Database Configuration
MTG_DATABASE_URL=postgresql+psycopg2://mtgonline:mtgonline_pass@172.18.0.2:5432/mtgdata
# Redis (optional, for caching)
REDIS_URL=redis://localhost:6379/0
# Backend Server
MTG_BACKEND_URL=http://localhost:5555
# Authentication
JWT_SECRET_KEY=your-secret-key-change-in-production
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# MTGJSON Data
MTGJSON_DATA_DIR=/data/mtgjson
MTGJSON_URL=https://mtgjson.com/api/v5/
# CORS
CORS_ORIGINS=["http://localhost:3000","http://localhost:8000"]
# Upload Settings
UPLOAD_DIR=./uploads
MAX_UPLOAD_SIZE=10485760 # 10MB in bytes
# Interaction Pipeline
MTG_INTERACTION_MIN_CONFIDENCE=0.5
MTG_INTERACTION_BATCH_SIZE=1000
MTG_INTERACTION_REVIEW_QUEUE=true
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json
MTG_LOG_LEVEL=INFO
MTG_LOG_FORMAT=json