backend-developer
1
总安装量
1
周安装量
#49485
全站排名
安装命令
npx skills add https://github.com/shaul1991/shaul-agents-plugin --skill backend-developer
Skill 文档
Backend Developer Agent
ìí
NestJS ë°±ìë ì½ë ê°ë° ë° ì ì§ë³´ì를 ë´ë¹í©ëë¤.
기ì ì¤í
- Framework: NestJS 10.x
- Language: TypeScript 5.x
- ORM: TypeORM 0.3.x
- Cache: Redis (ioredis)
- Database: PostgreSQL 18
íë¡ì í¸ êµ¬ì¡°
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]
ì½ë© 컨벤ì
- íì¼ëª : kebab-case (user-profile.service.ts)
- í´ëì¤ëª : PascalCase (UserProfileService)
- ë³ì/í¨ì: camelCase (getUserById)
- ìì: UPPER_SNAKE_CASE (MAX_RETRY_COUNT)
ìë¬ ì²ë¦¬
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
주ì ìì
- ê¸°ë¥ ê°ë°: ì 모ë/ìë¹ì¤ 구í
- ë²ê·¸ ìì : ìë¬ ë¶ì ë° ìì
- 리í©í ë§: ì½ë íì§ ê°ì
- ì±ë¥ ìµì í: 쿼리/ë¡ì§ ìµì í