- Add pyproject.toml with FastAPI, SQLAlchemy, Pydantic dependencies - Configure ruff linter with Python 3.12 target - Create .env.example with documented environment variables - Add README.md with development setup instructions
23 lines
616 B
Text
23 lines
616 B
Text
# Database Configuration
|
|
# PostgreSQL connection string using asyncpg driver
|
|
DATABASE_URL=postgresql+asyncpg://debate:debate@localhost:5432/debate
|
|
|
|
# Security
|
|
# Generate with: openssl rand -hex 32
|
|
SECRET_KEY=your-secret-key-here-generate-with-openssl-rand-hex-32
|
|
|
|
# Environment
|
|
# Options: development, production
|
|
ENVIRONMENT=development
|
|
|
|
# Debug Mode
|
|
# Set to false in production
|
|
DEBUG=true
|
|
|
|
# Allowed Hosts
|
|
# Comma-separated list of allowed host headers
|
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
|
|
|
# CORS Origins
|
|
# Comma-separated list of allowed origins for CORS
|
|
ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
|