Files
skrift-programme/.gitignore
Lucas Orth 2dbbc4611a Directus als Daten-/Auth-Schicht + Backend-Anbindung
Directus (Postgres, hinter NPM) wird die zentrale Datenquelle für Kunden,
Aufträge, Produkte, Preise und Gutscheine; das skrift-backend bleibt reine
Generierungs-Engine.

- Docker/directus: docker-compose (Directus 11 + Postgres), Bootstrap-Skript
  legt Collections, Rollen/Policies/Rechte und Seed idempotent an.
- Extension skrift-auth: passwortloser Login per E-Mail-Code (Codes nur als
  Hash, Ablauf, Versuchslimit) sowie Kontoanlage aus dem Checkout.
- Extension skrift-orders: kontrollierter Bestell-Endpunkt für Gäste und
  eingeloggte Kunden; Preis wird immer serverseitig berechnet (editierbare
  Formel via sicherem Interpreter, Werte aus price_items).
- skrift-backend: neuer Endpunkt /api/order/from-directus erzeugt SVGs aus
  einem Directus-Auftrag und schreibt Status + artifact_path zurück. Dafür
  wurde die Kernlogik aus generateOrder als runGeneration herausgelöst
  (Verhalten unverändert); generateOrder ist jetzt ein HTTP-Wrapper.
- compose: NPM-Netz ergänzt, API_TOKEN/DIRECTUS_* werden durchgereicht.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 19:13:35 +02:00

42 lines
1.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ── Secrets (nicht ins Repo!) ───────────────────────────────
.env
.env.*
!.env.example
# Produktions-Config mit SFTP-Passwort (Template: config.default.json)
Produktion/skrift-produktion/config.json
# ── Node ────────────────────────────────────────────────────
node_modules/
npm-debug.log*
# ── Python ──────────────────────────────────────────────────
.venv/
venv/
__pycache__/
*.py[cod]
.pytest_cache/
# ── Laufzeit-/generierte Daten ──────────────────────────────
cache/
output/
*.log
# Produktions-Laufzeitzustand
Produktion/skrift-produktion/processed_orders.json
Produktion/skrift-produktion/archive.json
Produktion/skrift-produktion/order_data.json
Produktion/skrift-produktion/temp_signature/
# ── Build-Artefakte ─────────────────────────────────────────
build/
dist/
*.spec
# Ausnahme: Directus-Extensions werden ohne Build-Schritt gepflegt –
# ihr dist/ IST der Quellcode und muss ins Repo.
!Docker/directus/extensions/*/dist/
# ── OS / Editor ─────────────────────────────────────────────
.DS_Store
Thumbs.db
.vscode/
.claude/settings.local.json