Migrate from MongoDB to Couchbase Lite for local storage; update related services and configurations
Some checks failed
Publish Container / publish (push) Failing after 3m43s

This commit is contained in:
Maddo 2026-03-17 13:53:33 +01:00
commit f976d70db8
24 changed files with 328 additions and 218 deletions

10
plan.md
View file

@ -1,13 +1,13 @@
# WorkTracker Implementation Plan (AI-Ready)
## 1) Chosen stack
- **Frontend + backend host**: ASP.NET Core + Blazor Web App (.NET 8)
- **Database**: MongoDB
- **Frontend + backend host**: ASP.NET Core + Blazor Web App (.NET 9)
- **Database**: Couchbase Lite (local embedded database)
- **Auth approach (single user)**: ASP.NET Core Identity configured and enabled now; registration can be disabled later and one seeded account can be used.
Why this stack:
- Fits CRUD-heavy workflow with strong typing and server-side calculations.
- MongoDB maps well to immutable daily snapshots (store coefficients used for each day).
- Couchbase Lite keeps the app self-contained while still storing immutable daily snapshots locally.
- Blazor provides responsive desktop/mobile UI in one codebase.
---
@ -31,7 +31,7 @@ Required outputs:
---
## 3) Data model design (MongoDB)
## 3) Data model design (Couchbase Lite)
### 3.1 `AppSettings` (configurable defaults)
- `id`
@ -138,7 +138,7 @@ For Blazor Server/Web App, these can be implemented as internal services first a
---
## 8) Delivery roadmap
1. Scaffold Blazor app + Identity + Mongo wiring
1. Scaffold Blazor app + Identity + Couchbase Lite wiring
2. Implement Settings and defaults
3. Implement WorkDay model and calculation service
4. Build daily entry page