mahdium
6d15ce2df9
Improved logging with zap
2025-09-16 12:23:12 +03:30
mahdium and Qwen-Coder
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
mahdium
d4044b0eaf
Added Gitea oauth to the admin dashboard and finished the oauth handling
2025-09-15 22:24:12 +03:30
mahdium
001e3b66cb
Added oauth for gitea
2025-09-15 19:10:49 +03:30
mahdium
051408fcdd
Added imagekit optimization support
2025-07-29 17:52:39 +03:30
mahdium
22adcee9d2
Use RemoteUrl instead of PreviewUrl and increase API timeout to 60 seconds
2025-06-05 18:15:16 +03:30
mahdium
0854387eb4
Fix string formatting in logging statements using strconv.Itoa
2025-05-17 21:40:12 +03:30
mahdium
99e3debf7c
Replace log package with slog for structured logging and improve error handling
2025-05-17 21:37:43 +03:30
mahdium
3d7a3a043f
Refactor config usage to access values through Config singleton
2025-05-17 21:08:12 +03:30
mahdium
7b601e75ba
Refactor app structure: move models to domain, centralize config and database init - TODO: add jwt
2025-05-17 20:07:29 +03:30
mahdium
ab9254fcad
Starting to improve the project structure
2025-05-17 18:43:54 +03:30
mahdium
1abc05ecd9
Add JWT authentication for admin dashboard login
2025-05-16 14:41:16 +03:30
mahdium
b3fae6b80c
Add user registration with password hashing and restructure handlers directory
2025-05-15 12:10:16 +03:30
mahdium
7aa8c26da9
Remove HTML template and simplify API response with static home page
2025-05-14 21:34:14 +03:30
mahdium
aded00daf1
Increase post fetch interval and add initial fetch on startup
2025-05-14 21:07:56 +03:30
mahdium
3007b41f0d
Add HTML template and implement homepage with random cat posts
2025-05-14 20:39:56 +03:30
mahdium
943925c3e9
Refactor handlers into separate packages and implement dependency injection.
...
IDK if this shit is good or even logical, but it works and I can wrap my head around it.
2025-05-14 20:03:06 +03:30
mahdium
02461d0bb0
Improve logging format and clarity for post/account insertion stats
2025-05-14 14:56:18 +03:30
mahdium
8c7cfbd956
Replace fatal error handling with proper error propagation and logging
2025-05-14 14:55:13 +03:30
mahdium
f9ec882cd9
Add periodic post fetching and update default Mastodon instance to mstdn.party
2025-05-13 22:47:52 +03:30
mahdium
117fe3dd34
Refactor app context setup and move API fetch logic to PostService
2025-05-13 17:32:29 +03:30
mahdium
a405289b33
Refactor db operations into PostService and add OnConflict for account inserts
2025-05-13 15:47:01 +03:30
mahdium
25d9b67be6
Add user management and improve code organization with context structs
2025-05-13 15:00:42 +03:30
mahdium
75bad5e091
Add web server with admin dashboard and media approval endpoints
2025-05-11 22:14:32 +03:30
mahdium
3e7f6b92d3
Changed project structure
2025-05-11 20:43:56 +03:30