Establishes foundation for migrating baseball simulation from Discord bot to web application using service-oriented architecture pattern. Key components: - FastAPI application structure with dependency injection - Service layer foundation with base classes and container - Comprehensive directory documentation with README files - PostgreSQL containerization with Docker Compose - Testing structure for unit/integration/e2e tests - Migration planning documentation - Rotating log configuration per user requirements Architecture follows Model/Service/Controller pattern to improve testability, maintainability, and scalability over original monolithic Discord app. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
720 B
Plaintext
21 lines
720 B
Plaintext
# Environment configuration for Paper Dynasty Web App
|
|
# Copy this file to .env and update values as needed
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=postgresql+psycopg://paper_dynasty_user:paper_dynasty_dev_password@localhost:5432/paper_dynasty
|
|
DATABASE_TEST_URL=postgresql+psycopg://paper_dynasty_user:paper_dynasty_dev_password@localhost:5432/paper_dynasty_test
|
|
|
|
# Application Settings
|
|
DEBUG=true
|
|
ENVIRONMENT=development
|
|
SECRET_KEY=development-secret-key-change-in-production
|
|
SESSION_EXPIRE_HOURS=24
|
|
|
|
# Discord OAuth (fill in when implementing authentication)
|
|
DISCORD_CLIENT_ID=
|
|
DISCORD_CLIENT_SECRET=
|
|
DISCORD_REDIRECT_URI=http://localhost:8001/auth/callback
|
|
|
|
# Game Settings
|
|
MAX_CONCURRENT_GAMES=100
|
|
GAME_TIMEOUT_HOURS=4 |