droplinked-backend
Installation
SKILL.md
Droplinked Backend Development Guide
Architecture Overview
Strict layered architecture with clear separation of concerns:
Controller -> Service Facade -> UseCase -> Repository
| Layer | Role | Rules |
|---|---|---|
| Controller | HTTP only | Transform params, call service. No logic. Use @CurrentUser(), IsObjectIdPipe |
| Service Facade | Thin orchestration | Get UseCase via ModuleRef, call execute(). No business logic |
| UseCase | All business logic | Extend UseCase<T,R>, implement validate() + doExecute() |
| Repository | Data access only | Extend Repository<T>, use Prisma. Semantic methods like findCartForCheckout() |