service-pattern-nestjs
Service Pattern - NestJS
Complete implementation guide for NestJS Services in Eridu.
Canonical Examples
Study these real implementations as the source of truth:
- Model Service: task-template.service.ts
- Schema File: task-template.schema.ts
- Base Service: base-model.service.ts
Detailed code examples: See references/service-examples.md
Core Responsibilities
Services act as the business logic layer. They should:
More from allenlin90/eridu-services
erify-authorization
Patterns for implementing authorization in erify_api with current StudioMembership + AdminGuard behavior, plus planned RBAC references
6data-validation
Provides comprehensive guidance for input validation, data serialization, and ID management in backend APIs. This skill should be used when designing validation schemas, transforming request/response data, mapping database IDs to external identifiers, and ensuring type safety across API boundaries.
6code-quality
Provides general code quality and best practices guidance applicable across languages and frameworks. Focuses on linting, testing, and type safety.
6repository-pattern-nestjs
Comprehensive Prisma repository implementation patterns for NestJS. This skill should be used when implementing repositories that extend BaseRepository or use Prisma delegates.
6task-template-builder
Provides guidelines for the Task Template Builder architecture, including Schema alignment, Draft storage, Drag-and-Drop, and Validation logic.
6jsonb-analytics-snapshot
Defines the JSONB Analytics Snapshot Pattern. This skill should be used when implementing analytics, dashboards, or any feature requiring aggregation of historical/immutable data where high read performance is required.
6