Store 브릭#
스토어/상점 기능을 제공하는 vertical slice 브릭입니다.
기본 정보#
| 항목 | 값 |
| 브릭명 | feature-store |
| 기본 feature_name | store |
| Primary Entity | StoreItem |
| Secondary Entity | StoreCategory |
주요 기능#
- 상품 목록 조회 (페이지네이션)
- 카테고리별 필터링
- 상품 상세 페이지
- 검색 기능
- 장바구니 연동
생성 구조#
Frontend#
feature/application/store/
├── lib/src/
│ ├── data/ # Repository 구현, 상품 캐싱
│ ├── domain/ # StoreItem, StoreCategory Entity
│ ├── presentation/ # BLoC, 상품 목록/상세 Page
│ ├── route/ # GoRouter TypedRoute
│ └── di/ # Dependency Injection
└── test/
Backend#
backend/{project}_server/lib/src/feature/store/
├── endpoint/ # 상품/카테고리 CRUD 엔드포인트
├── service/ # 상품 관리 서비스
├── model/
│ ├── entities/ # StoreItem, StoreCategory (.spy.yaml)
│ └── dto/ # 상품 목록 Response
├── exception/
├── validation/
└── test/
사용 예시#
bricksmith apply --feature store
# Entity 커스터마이징
bricksmith apply --feature store \
--primary-entity Product \
--secondary-entity ProductCategory
| Variable | Default | Description |
feature_name | store | Feature 모듈명 |
primary_entity | StoreItem | 주요 Entity (상품) |
secondary_entity | StoreCategory | 보조 Entity (카테고리) |