110 Commits

Author SHA1 Message Date
97bef2c98a api(auth): add auth endpoints (setup, login, logout, status), tests, and dependency token decoding; update docs 2025-10-13 00:12:35 +02:00
aec6357dcb feat(auth): add AuthService with JWT, lockout and tests 2025-10-13 00:03:02 +02:00
92217301b5 feat(auth): add Pydantic auth models and unit tests; update docs 2025-10-12 23:49:04 +02:00
8e885dd40b feat: implement comprehensive logging system
- Created src/server/utils/logging.py with structured JSON logging
- Multiple log handlers for app, error, download, security, performance
- Request logging middleware with unique request IDs and timing
- Log rotation and cleanup functionality
- Comprehensive test suite with 19 passing tests
- Context variables for request and user tracking
- Security event logging and download progress tracking

Features:
- JSON formatted logs with consistent structure
- Automatic log rotation (10MB files, 5 backups)
- Request/response logging middleware
- Performance monitoring
- Security auditing
- Download progress tracking
- Old log cleanup functionality

Tests: All 19 tests passing for logging system functionality
2025-10-12 23:33:56 +02:00
8fb4770161 Implement dependency injection system
- Enhanced existing src/server/utils/dependencies.py with optional SQLAlchemy import
- Added comprehensive unit tests in tests/unit/test_dependencies.py
- Created pytest configuration with asyncio support
- Implemented SeriesApp singleton dependency with proper error handling
- Added placeholders for database session and authentication dependencies
- Updated infrastructure.md with dependency injection documentation
- Completed dependency injection task from instructions.md

Features implemented:
- SeriesApp dependency with lazy initialization and singleton pattern
- Configuration validation for anime directory
- Comprehensive error handling for initialization failures
- Common query parameters for pagination
- Placeholder dependencies for future authentication and database features
- 18 passing unit tests covering all dependency injection scenarios
2025-10-12 23:17:20 +02:00
fe2df1514c cleanup 2025-10-05 21:56:33 +02:00
64434ccd44 cleanup contollers 2025-10-05 11:39:33 +02:00
e477780ed6 refactoring 2025-09-29 21:18:42 +02:00
7286b9b3e8 added some tests 2025-09-29 10:20:20 +02:00
78fc6068fb new folder structure 2025-09-29 09:17:13 +02:00