What problem does it solve?
PowerX projects often suffer from inconsistent CRUD HTTP implementations, leading to maintenance burdens, security gaps, and multi-tenant violations.
Core Features & Use Cases
- Unified Migration: Centralized cmd/database/migrate.go entry with AutoMigrate only, no raw SQL.
- Model Conventions: Base models with tenant ID, timestamps, JSON handling, and schema-aware table names.
- Repository & Service Patterns: BaseRepository composition, context-aware methods, DI registration in deps.go, and audit-logged write operations.
- Handler & Routing Standards: /api/v1/admin/** prefix, RESTful verbs, DTO validation, and uniform response structures.
- Testing Requirements: Contract and integration tests covering CRUD, pagination, and soft-delete behavior.
Quick Start
Use the crud-http skill to check that your module follows PowerX CRUD HTTP standards.