docs: add specification, design docs, mockups, wiki and deploy files
Prepare everything needed before development starts on Khaemhat, the ERP + CRM for Italian SMEs: - docs/SPEC.md: the original project specification, unchanged, plus CLAUDE.md with operational rules and amendments (Gitea instead of GitHub/GHCR, Docker image as the only deliverable). - ADR 0001-0011 for the baseline decisions. - Mockups: 22 high-resolution screens, the full gallery, 88 thumbnails cropped from it, mockup.css and an index. - Technical docs (architecture, data model, modules, API, MCP, deploy, security, development process, status with open spec questions). - Full draft wiki in docs/wiki (already published to the Gitea wiki). - Icons in assets/ and deploy files for Docker Compose and Unraid, pointing to the Gitea package registry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44fa273be5
commit
e746d99dab
207 files changed
+13496
-1
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# ADR 0006 — Database di sistema, configurazione da ambiente, cache
|
||||
|
||||
- **Stato:** accettata
|
||||
- **Data:** 2026-11-10
|
||||
- **Fonte:** SPEC §1.4, §1.5, §1.6, §5.4, §6, §7
|
||||
|
||||
## Contesto
|
||||
|
||||
Configurazione, licenze, log e account di amministrazione devono essere condivisi dall'istanza, e la
|
||||
configurazione iniziale deve venire solo dalle variabili d'ambiente del container.
|
||||
|
||||
## Decisione
|
||||
|
||||
- Database di sistema `khaemhat_system`: registry delle aziende, account di istanza (super utente unico e
|
||||
amministratori), licenze, impostazioni, chiavi DataProtection, log, audit di sicurezza, attività programmate,
|
||||
backup, sessioni di istanza.
|
||||
- Primo avvio guidato da `KHAEMHAT_*`: super utente, prima azienda, dati di base, demo (SPEC §6). Le variabili di
|
||||
bootstrap si rileggono solo se le tabelle corrispondenti sono vuote.
|
||||
- Nessun file di impostazioni o dati fuori da `KHAEMHAT_DATA_DIR`; preferenze nel database; log su stdout e nel DB.
|
||||
- Redis opzionale tramite client RESP scritto in casa; senza Redis la cache è in memoria con comportamento identico.
|
||||
|
||||
## Conseguenze
|
||||
|
||||
- Il volume `/data` e il database di sistema vanno salvati insieme alle aziende (wiki *Backup-e-ripristino*).
|
||||
- Perdere `KHAEMHAT_SECRET_KEY` rende illeggibili i segreti cifrati: va conservata fuori dal server.
|
||||
Reference in new issue
Block a user