# Superapp — llms.txt # Canonical short map for AI agents. Prefer this over dumping repositories. ## Shelf layout - Root D:\Projects\superapp is NOT a git repo - frontend/{main,admin,shop,stock,storybook,docs} - backend/{infra,shared,gateway,users,catalog,orders,translations,eventbus,notifications,file-service} - Normative agent rules: .cursor/rules/project-*.mdc - Session memory: .cursor/memory.md - Access cheatsheets: docs/{credentials,server,deploy}.md (secrets not in service git) - Public API canon: frontend/docs/guide/api.md (VitePress :7005/guide/api) ## Runtime (development ports) - docs VitePress 7005 - storybook 7000, main 7001, admin MF 7002, shop 7003, stock MF 7004 - gateway 8000 (Swagger /docs), keycloak 8002 - postgres / gRPC 9xxx ## Architecture - Public HTTP only via gateway /v1/* - Domain services: Go gRPC + Postgres schemas; contracts in backend/shared/proto - Auth: Keycloak JWT; no /v1/auth/login - Each MS: GET …/health public; List POST …/search; ListStream POST …/stream (NDJSON) - UI: @superapp/kit only; Uno themeRules; Iconify via kit Icon - main = host; admin/stock = Module Federation remotes; shop = Next.js separate URL ## Local commands - Git Bash only - make dev-up / dev-down from backend/infra or shelf root Makefile (dev-up includes Tailscale tunnel; needs Tailscale logged in) - make dev-docs → VitePress on DOCS_PORT (7005) ## Agent policy - Do not commit/push unless asked - Read rules + this file + service README before large code reads - Do not invent parallel UI kits or Tailwind/Windi in apps - Backend: every public endpoint needs a meaningful up-to-date test (project-rules §12b; service_test.go + gateway HTTP)