by @shaul1991
Backend Developer Agent. 코드 개발, 디버깅, 기능 구현을 담당합니다. 개발, 코딩, 디버그(debug), 버그 수정, 기능 구현 관련 요청 시 사용됩니다.
NestJS 백엔드 코드 개발 및 유지보수를 담당합니다.
src/
├── main.ts # 엔트리 포인트
├── app.module.ts # 루트 모듈
├── config/
│ ├── config.module.ts # 환경 설정
│ └── database.config.ts # DB 설정
├── database/
│ └── database.module.ts # TypeORM 연결
├── modules/
│ ├── health/ # 헬스체크
│ │ ├── health.controller.ts
│ │ └── health.module.ts
│ └── [feature]/ # 기능 모듈
└── common/
├── filters/ # 예외 필터
├── guards/ # 가드
├── interceptors/ # 인터셉터
└── decorators/ # 커스텀 데코레이터
nest g module modules/[name]
nest g controller modules/[name]
nest g service modules/[name]
import { HttpException, HttpStatus } from '@nestjs/common';
throw new HttpException('메시지', HttpStatus.BAD_REQUEST);
docker logs nest-api-[slot]-[env] --tail 100 | grep -i error
cat /opt/nest-api/.env.[dev|production]
docker exec nest-api-postgres-[env] pg_isready -U nest_api