kui-vault/06.Archive/aimSystems/MBS/NestJS 패키지 구성.md

969 B

최종

src/
└── order/
    ├── domain/
    │   ├── order.entity.ts       ← Order (Aggregate Root)
    │   ├── order-item.entity.ts  ← 내부 엔티티
    │   ├── value-objects/
    │   │   └── address.vo.ts     ← 값 객체
    │   └── interfaces/
    │       └── order.repository.ts  ← Repository 인터페이스
    ├── application/
    │   └── service/
    │       └── order.service.ts  ← 서비스
    ├── presentation/
    │   ├── dto/
    │   │   └── create-order.dto.ts   ← DTO
    │   └── controller/
    │       └── order.controller.ts  ← 컨트롤러
    ├── infrastructure/
    └── order.module.ts           ← 모듈

!실제 프로젝트 패키지 구성에 관하여#📌 실제 프로젝트 패키지 구성에 관하여#💡 생각

!hi-nest 프로젝트 패키지 구조