64 Commits

Author SHA1 Message Date
9323eb6371 feat(api): add anime API endpoints and tests; update docs 2025-10-14 22:01:56 +02:00
3ffab4e70a feat(server): add anime_service wrapper, unit tests, update docs 2025-10-14 21:57:20 +02:00
5b80824f3a feat(server): add anime Pydantic models, unit tests, and infra notes 2025-10-14 21:53:41 +02:00
52b96da8dc feat(config): add Pydantic AppConfig, BackupConfig, LoggingConfig; update tests and infra notes 2025-10-14 21:43:48 +02:00
4aa7adba3a feat(config): add Pydantic config models, tests, docs and infra notes 2025-10-14 21:36:25 +02:00
9096afbace feat(auth): add AuthMiddleware with JWT parsing and in-memory rate limiting; wire into app; add tests and docs 2025-10-13 00:18:46 +02:00
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
2867ebae09 health check 2025-10-12 23:06:29 +02:00
6a695966bf instruction3 2025-10-12 22:43:18 +02:00
7481a33c15 instruction2 2025-10-12 22:39:51 +02:00