86211923db
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
26 lines
542 B
Markdown
26 lines
542 B
Markdown
# SerpentRace Frontend Developer Guide
|
|
|
|
## Quick Start
|
|
Base URL: http://localhost:3000/api
|
|
|
|
## Authentication
|
|
JWT-based authentication with role-based access control.
|
|
|
|
## API Endpoints
|
|
- Users: /api/users
|
|
- Games: /api/games
|
|
- Decks: /api/decks
|
|
- Organizations: /api/organizations
|
|
|
|
## WebSocket Events
|
|
- Game namespace: /game
|
|
- Chat namespace: /
|
|
|
|
## Key Features
|
|
- Real-time game mechanics
|
|
- Field effect system
|
|
- Private game approval flow
|
|
- Comprehensive error handling
|
|
|
|
For complete documentation, see the full implementation guide.
|