Refactor database handling to require PostgreSQL connection, removing fallback to JSON. Implement error handling for database unavailability in key files. Update .env.example to reflect mandatory DATABASE_URL for local development. Remove Firebase configuration and related code from the project.

This commit is contained in:
2026-05-23 10:23:28 +02:00
parent 547778bba5
commit 6577db475a
20 changed files with 823 additions and 789 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# FlixCooks lokale Entwicklung (.env wird nicht committed)
# Kopieren: cp .env.example .env
# --- Postgres (docker-compose.dev.yml) ---
# Nur setzen, wenn du die lokale DB testen willst. Ohne DATABASE_URL → Fallback auf data/recipes.json
# --- Postgres (Pflicht für die Website) ---
# docker compose -f docker-compose.dev.yml up -d
DATABASE_URL="postgresql://flixcooks:flixcooks_dev@127.0.0.1:5432/flixcooks_dev"