nestjs-drizzle-crud-generator

Solid

Generates complete CRUD modules for NestJS applications with Drizzle ORM. Use when building server-side features in NestJS that require database operations, including creating new entities with full CRUD endpoints, services with Drizzle queries, Zod-validated DTOs, and unit tests. Triggered by requests like "generate a user module", "create a product CRUD", "add a new entity with endpoints", or when setting up database-backed features in NestJS.

AI & Automation 263 stars 31 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
81
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# NestJS Drizzle CRUD Generator ## Overview Automatically generates complete CRUD modules for NestJS applications using Drizzle ORM. Creates all necessary files following the zaccheroni-monorepo patterns: feature modules, controllers, services, Zod-validated DTOs, Drizzle schemas, and Jest unit tests. ## When to Use - Creating new entity modules with full CRUD endpoints - Building database-backed features in NestJS - Generating type-safe DTOs with Zod validation - Adding services with Drizzle ORM queries - Creating unit tests with mocked database ## Instructions ### Step 1: Define Entity Fields Gather entity definition: - Entity name (e.g., `user`, `product`, `order`) - List of fields with types (see `references/field-types.md` for supported types) - Required fields vs optional fields with defaults ### Step 2: Run the Generator ```bash python scripts/generate_crud.py --feature <name> --fields '<json-array>' --output <path> ``` ### Step 3: Verify Generated Files Check that all expected files were created: ```bash ls -la libs/server/<feature-name>/src/lib/ ``` Expected structure: ``` controllers/ services/ dto/ schema/ <feature>-feature.module.ts ``` ### Step 4: Run TypeScript Compilation ```bash cd libs/server && npx tsc --noEmit ``` ### Step 5: Execute Unit Tests ```bash cd libs/server && npm test -- --testPathPattern=<feature-name> ``` ## Examples ### Generate a User module ```bash python scripts/generate_crud.py \ --feature user \ --fields '[{"name":...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
7 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

nestjs

Provides comprehensive NestJS framework patterns with Drizzle ORM integration for building scalable server-side applications. Generates REST/GraphQL APIs, implements authentication guards, creates database schemas, and sets up microservices. Use when building NestJS applications, setting up APIs, implementing authentication, working with databases, or integrating Drizzle ORM.

263 Updated 1 weeks ago
giuseppe-trisciuoglio
API & Backend Listed

nestjs

NestJS TypeScript backend development with enterprise patterns, dependency injection, modular architecture, and comprehensive testing support. Use when: (1) Project has @nestjs/core in package.json or nest-cli.json exists, (2) Creating modules, controllers, services, guards, pipes, interceptors, or filters, (3) Implementing JWT authentication or role-based authorization (RBAC/ABAC), (4) Integrating TypeORM, Prisma, or MikroORM for database operations, (5) Writing unit tests with Jest or E2E tests with supertest, (6) Setting up Swagger/OpenAPI documentation, (7) Implementing CQRS, event sourcing, or microservices patterns. Auto-detects: nest-cli.json, *.module.ts, *.controller.ts, *.service.ts, *.guard.ts, @nestjs/* packages in package.json, src/modules/ directory structure. NOT for: Pure Express.js without NestJS, frontend React/Vue/Angular code, non-TypeScript Node.js projects, Fastify without NestJS wrapper.

0 Updated today
murtazatouqeer
Testing & QA Listed

java-crud

Generates a complete Spring Boot CRUD feature (entity, repository, service, controller, DTOs, tests) in an existing project. Use when user asks to "add CRUD for", "generate entity", "create a feature for", "add REST endpoints for", "scaffold a feature", or "build CRUD for".

0 Updated today
limited-grisaille833
AI & Automation Solid

nestjs

NestJS architecture including modules, dependency injection, guards, interceptors, and microservices patterns.

1,160 Updated today
a5c-ai
AI & Automation Solid

nestjs-module-generator

Generate nestjs module generator operations. Auto-activating skill for Backend Development. Triggers on: nestjs module generator, nestjs module generator Part of the Backend Development skill category. Use when working with nestjs module generator functionality. Trigger with phrases like "nestjs module generator", "nestjs generator", "nestjs".

2,274 Updated today
jeremylongshore