Add local-first SPA architecture and containerized production deploy.

Move data access to use-cases and IndexedDB repositories with optional
remote fallback, changelog/sync ports, and encrypted local backup.
Add production Docker Compose (nginx frontend + optional backend) and
Apache host proxy configuration for deployment.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-29 16:08:02 +03:00
co-authored by Cursor
parent b668ee8507
commit 5e0af42fce
37 changed files with 1117 additions and 51 deletions
+12
View File
@@ -0,0 +1,12 @@
# Режим данных при сборке фронта: local | remote | hybrid
VITE_DATA_MODE=local
# Порты на хосте (для прокси-сервера)
FRONTEND_BIND=127.0.0.1
FRONTEND_PORT=8080
BACKEND_BIND=127.0.0.1
BACKEND_PORT=8000
# Только при profile with-backend (VITE_DATA_MODE=remote)
DJANGO_SECRET_KEY=replace-with-long-random-string
ALLOWED_HOSTS=your-domain.com,www.your-domain.com