Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node-Sever health check 엔드포인트 추가하라 #182

Merged
merged 2 commits into from
Mar 25, 2024
Merged

Conversation

jihwooon
Copy link
Owner

@jihwooon jihwooon commented Mar 25, 2024

작업 내용 (Content)

  • 새로운 스크립트 추가: "build": "tsc"
  • 기존 시작 스크립트 "start": "tsx watch -r dotenv/config src/index.ts"은 변경되지 않았습니다.

링크 (Links)

기타 사항 (Etc)

Merge 전 필요 작업 (Checklist before merge)

  • PR 올리기 전 rebase 동기화를 하셨나요?
  • 마지막 줄에 공백 처리를 하셨나요?
  • 커밋 단위를 의미 단위로 나눴나요?
    • 예시
      • 코드 가독성을 위해 메서드를 추출하라
      • if-else 문을 if 문으로 분리하라
      • 불필요한 메서드를 인라인화하라
  • 커밋 본문을 작성하셨나요?
    • 예시
      • 함수는 한 가지 일을 해야 한다는 원칙에 따라 메서드를 추출합니다.
      • if-else는 컴파일 시 처리가 되어 재컴파일 없이 수정 할 수 없습니다.
        이에 따라 코드가 실행되는 순간에 실행이 결정되는 if 문으로 수정합니다.
  • CI 파이프라인이 통과가 되었나요?
  • 리뷰 요청 전 Self-Review로 의문점을 해결 하셨나요?
  • PR 리뷰 가능한 크기를 유지하셨나요?

- 새로운 스크립트 추가: "build": "tsc"
- 기존 시작 스크립트 "start": "tsx watch -r dotenv/config src/index.ts"은 변경되지 않았습니다.
- 새로운 라우터 생성: server-node/src/routers/healthCheck.router.ts
  - /healthcheck 경로에 GET 요청을 처리
  - "OK" 응답 반환
- 앱에 라우터 등록: server-node/src/app.ts
  - app.use(healthCheckRouter) 추가
@jihwooon jihwooon changed the title server-node/package.json 업데이트 (빌드 스크립트 추가) Node-Sever health check 엔드포인트 추가하라 Mar 25, 2024
@jihwooon jihwooon merged commit 4cd41ea into main Mar 25, 2024
1 check passed
@jihwooon jihwooon deleted the issue-107 branch March 25, 2024 03:51
jihwooon added a commit that referenced this pull request Jun 7, 2024
Node-Sever health check 엔드포인트 추가하라
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant