feat: Fix nutrition service and add location-based alerts
All checks were successful
continuous-integration/drone/push Build is passing

Changes:
- Fix nutrition service: add is_active column and Pydantic validation for UUID/datetime
- Add location-based alerts feature: users can now see alerts within 1km radius
- Fix CORS and response serialization in nutrition service
- Add getCurrentLocation() and loadAlertsNearby() functions
- Improve UI for nearby alerts display with distance and response count
This commit is contained in:
2025-12-13 16:34:50 +09:00
parent 3050e084fa
commit cfc93cb99a
34 changed files with 7016 additions and 17 deletions

16
run_frontend.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Запуск простого HTTP сервера для фронтенда
PORT=8888
echo "🌐 Запуск веб-сервера на порту $PORT..."
echo "📝 Открыте браузер и перейдите на: http://localhost:$PORT/frontend_test.html"
echo ""
echo "Для остановки сервера нажмите Ctrl+C"
echo ""
cd "$(dirname "$0")"
# Python 3
python3 -m http.server $PORT --bind 127.0.0.1