Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Max Character Creator

Documentation

  • docs/technische-dokumentation.md – Technical guide: the SYSTEM=TEST test mode (gate, components, validation, persistence, checks), the Entweder/Oder choice of culture alternatives in the character creation „Kultur" step, the derived value „Geschwindigkeit" (GES = GK + GE) in creation, chronicle and library, passive attribute/derived-value bonuses for masteries and advantages (config storage, application in creation and chronicle, bonus fields labeled with abbreviations only), and the read-only bonus preview in the character creation „Attribute" step. It also covers configurable multi-selection of advantages/masteries (positive integer limit, Roman numbering, summed passive bonuses) in library, chronicle and creation, and the creation point-budget behaviour for repeated selections: each selection costs its configured price, with remaining budget and selection limit applying together. It also covers the 1-point strength budget in creation step „5. Kindheit" („Stärken Punkte: 1", at most one strength even if multi-selectable): each selection costs its configured price and removing it refunds the point. It also covers the character-wide, cross-step cumulative selection limit for multi-selectable strengths (INT-000030): the configured limit applies across all creation steps, so a strength maxed in one step is no longer offered in later steps even with budget left, while each step's point budget still applies. It also covers the character-wide lock for non-multi-selectable strengths (INT-000031): such a strength is selectable only once per character and is no longer offered in later creation steps even with budget left, while toggling it off in its origin step frees it again. It also covers the passive-bonus editor layout (INT-000032): each abbreviation/text-field pair is a named accessibility group with the input directly behind its abbreviation and a larger gap between pairs, in both strengths and masteries; labels, values, validation and storage are unchanged.
  • docs/anwenderhandbuch.md – User manual (German): using the „Zufällig ausfüllen" test-mode button, choosing culture alternatives during character creation, reading the derived value „Geschwindigkeit" (GES), defining and receiving passive bonuses on masteries and advantages (bonus fields show only the established abbreviations), seeing those bonuses already while assigning attributes in step „7. Attribute", and configuring and repeatedly choosing advantages/masteries up to a limit with Roman numbering and summed bonuses; it also explains the per-selection point cost and the shared budget/limit when choosing a multi-selectable strength again in the creation point steps, including the 1-point budget in „5. Kindheit" that allows only one strength („Stärken Punkte:"). It also explains that this selection limit is character-wide across creation steps (INT-000030): a strength chosen or maxed in one step counts in later ones, is no longer selectable there, and toggling a selection frees it again. It also explains that strengths without „mehrfach wählbar" are limited to one selection per character and are no longer offered in later creation steps (INT-000031). It also explains the passive-bonus editor layout (INT-000032): in the library each abbreviation has its input field directly behind it, with a larger gap to the next pair, when creating or editing strengths and masteries; entering, saving and reloading bonuses stay the same.
  • docs/KULTUREDITOR-REGELN.md – Technical rules and validation of the library culture editor (talent/strength limits, Entweder/Oder alternatives, all message texts).
  • docs/ANWENDER-KULTUREDITOR.md – User manual (German): creating cultures with talents, one strength, and equal-value Entweder/Oder alternatives.

Local development

Requires Node.js 24 and npm.

npm ci --omit=peer
npm run dev

Useful checks:

npm test
npm run typecheck --workspace=backend
npm run build --workspace=frontend
npm audit --omit=dev --omit=peer

The test suite creates and removes an isolated temporary SQLite database. The production runtime uses tsx to start the TypeScript backend, so tsx is intentionally a production dependency. Optional peer drivers are omitted; this application uses @libsql/client.

Docker Compose

docker compose up --build
docker compose down

docker compose down -v deletes the persistent SQLite volume and should only be used when you intentionally want to remove all local data.

Testmodus (SYSTEM=TEST)

Der Testmodus ergänzt auf jedem Schritt der Charaktererstellung den Button „Zufällig ausfüllen". Er setzt ausschließlich die Felder des aktuellen Schritts mit zufälligen, gültigen Werten (synthetische Daten); Validierung, Datenmodell, Persistenz und der reguläre „Weiter"-Ablauf bleiben unverändert. Der Button ist nur sichtbar, wenn die serverseitig gestartete Instanz mit SYSTEM=TEST läuft. Es gibt bewusst keinen clientseitigen Schalter.

SYSTEM=TEST npm start                  # direkter Start des Servers
SYSTEM=TEST docker compose up --build  # Compose reicht SYSTEM in den Container

Der Gate lässt sich direkt prüfen:

curl -s http://localhost:3000/api/config   # {"testMode":true} mit SYSTEM=TEST
                                           # {"testMode":false} ohne die Variable

Ohne SYSTEM=TEST erscheint kein Button und das Verhalten entspricht exakt dem Ist-Zustand. Für die native systemd-Installation (Main/QA) wird die Variable beim Deployment aus der Aufruf-Umgebung in die release-lokale .release.env übernommen, die der Dienst per EnvironmentFile liest, z. B. SYSTEM=TEST mcc-deploy-commit main. Da systemd die EnvironmentFile nur beim Prozessstart liest, wird der Dienst beim Re-Deploy desselben Commits neu gestartet (nicht nur start), damit das geänderte Flag auch im laufenden Prozess wirksam wird; der Health-Check prüft /api/config entsprechend. Ein normaler Timer-Update ohne SYSTEM setzt das Flag damit wieder zurück.

Native Node/systemd deployment

Production deployment targets use Node.js 24 and systemd in unprivileged Debian LXC containers; Docker-in-LXC is not required. Main/QA follows the latest main commit only after local install, production audit, backend tests/typecheck, frontend build, and the health endpoint's commit-SHA check pass. Stable has no polling timer: it accepts only the explicit promote-commit <full-sha> command, verifies that SHA is reachable from GitHub main, repeats the checks, backs up SQLite before startup migrations, and rolls back the release and database on a failed health check.

The systemd units, update/promotion commands, and installation notes are in ops/. The CI workflow verifies changes but does not deploy to the former SSH/Docker host. The /api/health response includes commitSha and the X-Commit-SHA header when APP_GIT_SHA is set by the selected release.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages