Commit Graph

15 Commits

Author SHA1 Message Date
6d15ce2df9 Improved logging with zap 2025-09-16 12:23:12 +03:30
f136ae58b3 Refactor: Implement uber-go/fx dependency injection
- Replace global variable pattern with proper dependency injection
- Add uber-go/fx for automatic dependency resolution
- Refactor all services and handlers to use constructor injection
- Eliminate fragile initialization order dependencies
- Improve testability and modularity
- Add structured logging with zap

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-09-16 11:41:01 +03:30
001e3b66cb Added oauth for gitea 2025-09-15 19:10:49 +03:30
71800440be Add imagekit fallback on no imagekit ID 2025-07-29 17:55:16 +03:30
051408fcdd Added imagekit optimization support 2025-07-29 17:52:39 +03:30
e0aa177f07 Add mysql support 2025-07-25 11:50:08 +03:30
15485b03d4 Minor improvements 2025-07-11 17:59:38 +03:30
686eaec0ad Replace panic with slog.Error when .env file loading fails 2025-05-18 13:31:03 +03:30
99e3debf7c Replace log package with slog for structured logging and improve error handling 2025-05-17 21:37:43 +03:30
9565c06fba Add JWT auth and .env support for admin login 2025-05-17 20:47:04 +03:30
0d9cf11687 Remove unused imports and fix import alias naming 2025-05-17 20:29:07 +03:30
81adfa1ad9 Refactor JWT auth and remove DB dependency from config 2025-05-17 20:28:18 +03:30
f9d896bf72 Remove AppContext struct and update JWT secret validation error message 2025-05-17 20:11:50 +03:30
7b601e75ba Refactor app structure: move models to domain, centralize config and database init - TODO: add jwt 2025-05-17 20:07:29 +03:30
ab9254fcad Starting to improve the project structure 2025-05-17 18:43:54 +03:30