Refactor database handling and API endpoints

- Removed fsnotify dependency and related file watching logic.
- Introduced SQLite database for storing user profiles and history.
- Created new API endpoints for fetching latest profiles and user history.
- Migrated existing JSON data to the new database structure.
- Simplified HTML and JavaScript for fetching and displaying profile data.
- Improved error handling and logging throughout the application.
This commit is contained in:
2025-06-12 22:42:22 +02:00
parent 1ed17d152f
commit 5084c70295
5 changed files with 471 additions and 474 deletions
+1 -2
View File
@@ -6,12 +6,11 @@ toolchain go1.23.2
require (
github.com/PuerkitoBio/goquery v1.10.1
github.com/fsnotify/fsnotify v1.8.0
github.com/joho/godotenv v1.5.1
github.com/mattn/go-sqlite3 v1.14.28
)
require (
github.com/andybalholm/cascadia v1.3.3 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/sys v0.28.0 // indirect
)