Skip to main content

health-check

Check the health of the running WealthWise API, web app, and MongoDB services. Triggers when asked to "check if the app is running", "verify the API is up", "is the server healthy", or "show service status".

설치로 이동

소스 정보

저장소
hoangsonww/WealthWise-Finance-Tracker
최근 소스 활동
2026년 3월 10일 18:17
감지된 SKILL.md 언어
영어
스타
25
포크
13

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
health-check
description
Check the health of the running WealthWise API, web app, and MongoDB services. Triggers when asked to "check if the app is running", "verify the API is up", "is the server healthy", or "show service status".
Check the health of the running WealthWise services. ## Checks ### 1. API health ```bash curl -sf http://localhost:4000/api/health ``` Expected: HTTP 200 with `{ "status": "ok" }`. ### 2. Web app ```bash curl -sf -o /dev/null -w "%{http_code}" http://localhost:3000/ ``` Expected: HTTP 200. ### 3. Containers (if running in Docker or Podman) ```bash # Try Docker first docker compose ps 2>/dev/null # If Docker is not available, try Podman podman ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" 2>/dev/null ``` ### 4. MongoDB (inferred from API health) The API health endpoint reflects DB connectivity. HTTP 503 from the health endpoint typically means MongoDB is unreachable. ## Report format ``` Service Status Notes ───────────────────────────────────────── API (port 4000) ✓ up | ✗ unreachable Web (port 3000) ✓ up | ✗ unreachable MongoDB ✓ connected | ✗ disconnected (via API health) Docker/Podman ✓ running X/N containers | ✗ daemon not running ``` ## On failure If a service is down: 1. Check container status: `docker compose ps` or `podman ps` 2. Show recent logs: `docker compose logs --tail=30 <service>` or `podman logs --tail=30 <container>` 3. Check for port conflicts 4. Suggest the correct command to start: `$docker-up`
GitHub에서 보기