분류 전체보기
-
NestJS에서 에러 로그 생성 및 관리Nest.js 2024. 3. 12. 15:28
https://velog.io/@inmyblue0930/winton-daily-rotate-file Winston + Winston-daily-rotate-file 를 이용하여 로그 파일 관리 Sentry-Slack 연동 | 실시간 로그모니터링 https://velog.io/@inmyblue0930/Sentry-Slack-%EC%97%B0%EB%8F%99-%EC%8B%A4%EC%8B%9C%EA%B0%84-%EB%A1%9C%EA%B7%B8%EB%AA%A8%EB%8B%88%ED%84%B0%EB%A7%81 [NestJs]Sentry-Slack 연동 | 실시간 로그모니터링 목표 1) Sentry를 통해 에러 발생시 바로 트래킹 2) Slack으로 에러 전송 설치해야할 라이브러리 Sentry 연결 > Sentry..
-
Typescript로 SQL을 작성하는 라이브러리Node.js 2024. 3. 10. 13:19
https://github.com/codemix/ts-sql?tab=readme-ov-file GitHub - codemix/ts-sql: A SQL database implemented purely in TypeScript type annotations. A SQL database implemented purely in TypeScript type annotations. - codemix/ts-sql github.com 굉장히 흥미롭다. 완전한 Typescript를 이용하여 쌩 쿼리를 작성할 수 있다. 꿀잼인데?
-
nestjs-test-coverage에서 제외 파일 설정Nest.js/TDD 2024. 3. 9. 20:17
- Reference https://jestjs.io/docs/configuration#coveragepathignorepatterns-arraystring Configuring Jest · Jest The Jest philosophy is to work great by default, but sometimes you just need more configuration power. jestjs.io //package.json { ... "coverageDirectory": "../coverage", "testEnvironment": "node", "coveragePathIgnorePatterns": [ "/main.ts", "/app.module.ts" ] } }
-
NestJS class-validator 사용시 일관성 있는 에러처리Nest.js 2024. 3. 8. 12:25
class-vaildator Dto 중첩 객체 에러 처리 문제{ "success": false, "timestamp": "2024-05-16T03:59:41.456Z", "status": 400, "message": "Validation failed", "path": "/api/groups/75aca3da-1dac-48ef-84b8-cdf1be8fe37d/schedules", "errors": [ { "field": "periods", "message": "값이 없습니다!", "children": [ {}, {}, { "field": "tourisms", "message": "값이 없습니다!"..
-
-
-