NestJS patterns for Vendix backend API. Trigger: When editing files in apps/backend/, creating modules, or working with Prisma.
Backend code lives mainly under apps/backend/src/domains/, plus shared common/, prisma/, ai-engine/, and infrastructure modules. Do not create new feature folders under the old src/features/ pattern.
Common domain areas:
domains/superadmin/domains/organization/domains/store/domains/ecommerce/domains/auth/Follow existing domain folder conventions:
apps/backend/src/domains/<domain>/<module>/
<module>.module.ts
<module>.controller.ts
<module>.service.ts
dto/
Some established modules have nested submodules or shared services. Match the nearest existing pattern.
Use the domain-appropriate Prisma service:
| Context | Service |
| --- | --- |
| superadmin/system | GlobalPrismaService |
| organization admin | OrganizationPrismaService |
| store admin/POS | StorePrismaService |
| ecommerce customer/public store | EcommercePrismaService |
If adding a new model, register it in scoped Prisma services before relying on automatic tenant filters. See vendix-prisma-scopes.
ValidationPipe is configured in main.ts; use class-validator DTOs.VendixHttpException and registered ErrorCodes where available.npm run prisma:generate -w apps/backend
npm run db:migrate:dev -w apps/backend
npm run db:migrate:prod -w apps/backend
npm run db:seed -w apps/backend
docker logs --tail 40 vendix_backend
Do not run destructive reset/clean commands unless explicitly requested.
vendix-prismavendix-prisma-scopesvendix-backend-authvendix-backend-apivendix-validationvendix-error-handlingSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer