Files
SerpentRace/SerpentRace_Docker/.env.dev
T
Donat 86211923db Backend Complete: Interface Refactoring & Service Container Enhancements
Repository Interface Optimization:
- Created IBaseRepository.ts and IPaginatedRepository.ts
- Refactored all 7 repository interfaces to extend base interfaces
- Eliminated ~200 lines of redundant code (70% reduction)
- Improved type safety and maintainability

 Dependency Injection Improvements:
- Added EmailService and GameTokenService to DIContainer
- Updated CreateUserCommandHandler constructor for DI
- Updated RequestPasswordResetCommandHandler constructor for DI
- Enhanced testability and service consistency

 Environment Configuration:
- Created comprehensive .env.example with 40+ variables
- Organized into 12 logical sections (Database, Security, Email, etc.)
- Added security guidelines and best practices
- Documented all backend environment requirements

 Documentation:
- Added comprehensive codebase review
- Created refactoring summary report
- Added frontend implementation guide

Impact: Improved code quality, reduced maintenance overhead, enhanced developer experience
2025-09-21 03:27:57 +02:00

18 lines
419 B
Bash

# Development Environment Variables
POSTGRES_PASSWORD=postgres
JWT_SECRET=dev_jwt_secret_change_in_production_please_use_a_long_random_string
JWT_EXPIRATION=24h
JWT_REFRESH_EXPIRATION=7d
MINIO_ACCESS_KEY=serpentrace
MINIO_SECRET_KEY=serpentrace123!
# Optional: Email configuration for development
EMAIL_HOST=
EMAIL_PORT=
EMAIL_USER=
EMAIL_PASS=
EMAIL_FROM=
# Optional: Other development settings
NODE_ENV=development