XiaoDaiGua-Ray 0e688a34bf
feat(fullstack): complete account and session integration
Enforce live session grants for runtime routes and support profile and
credential updates in both the backend and demo modes.

Add the account settings workspace and document fullstack setup and PC
acceptance.
2026-11-06 21:39:36 +08:00

2.2 KiB

Optional NestJS server

Use this topic for the fullstack distribution, database persistence, authentication, permissions, Redis limits/cache, security, logs, and server startup.

Read the server guide, platform contract, shared contracts, and source distribution guide. The PC acceptance plan covers authentication, navigation, and setup from a clean environment.

  • Bootstrap owns Nest modules and platform lifecycle. Platform owns environment validation, Redis, request logging, security headers, CORS, limits, and health checks.
  • Database owns Prisma lifetime and transaction retries. Schema and migrations are server-only. Seed must preserve existing data.
  • Authentication checks signed JWTs against live sessions and permission grants. Credential/session state must not use the reusable data cache.
  • Users validates and authorizes writes inside transactions. Routes use the shared route parser and generated catalog.
  • Fullstack launcher creates local configuration and orchestrates services. Distribution exporter projects independent frontend/fullstack workspaces; it never publishes branches or releases.

pnpm harness verify server runs type checks, unit/platform tests, and the backend build without requiring PostgreSQL. Real HTTP integration is explicit: set TEST_DATABASE_URL and TEST_REDIS_URL, then run pnpm server:test:integration. Tests own random schemas/prefixes and clean only those resources. Run the full Harness at integration completion and browser verification for the affected login, user and routing flows. Container builds and remote publication require independent evidence.