← 목록
기타 2026-07-17 1KB 읽기 2분

Crowny Today 백엔드 구축

개요

today.crowny.org 팀 하루 기록 앱(지금/마침/내일계획, 8·8·8 리듬, 할일, 주간보고서)의 순수 한선씨 백엔드를 신규 구축. React 프론트가 하드코딩하던 데이터를 영속화하고 ERP 브리핑을 프록시.

무엇을 했는지

  • /Users/ef/crowny-today/서버.한선 — 포트 9604, TCP대기 루프, CORS, PSV append-log 저장
  • API 12종: /health, /api/posts(GET/POST), /api/posts/cheer, /api/posts/comment, /api/todos(GET/POST), /api/report(GET/POST), /api/sync(오프라인 배치), /api/briefing(ERP 9938 프록시)
  • 컴파일 성공(hanseonc_high), 전 엔드포인트 curl 검증 통과, 재기동 영속성 확인(kill→restart→데이터 유지)
  • LaunchAgent org.crowny.today.plist 작성+load 완료 (RunAtLoad+KeepAlive)

관련 파일

  • /Users/ef/crowny-today/서버.한선, 서버.toau
  • /Users/ef/crowny-today/CLAUDE.md
  • /Users/ef/crowny-today/data/*.psv (게시물/할일/보고서/응원/댓글)
  • ~/Library/LaunchAgents/org.crowny.today.plist

잔여 이슈

  • ERP(9938) /api/work/tasks 라우트 부재로 briefing이 erp_up만 확인(에러 그레이스풀 처리, 크래시 아님)
  • 응원/할일 토글이 파일 전체 재작성 방식(소규모 데이터 전제) — 대규모 확장 시 재검토 필요