feat: server 세팅 - #22
Merged
Merged
Conversation
hywznn
force-pushed
the
agent/3-dev-environment-foundation
branch
from
July 21, 2026 07:08
fdb5b95 to
e23c86d
Compare
Member
|
수정이 필요합니다 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜 필요한가요?
처음 참여한 팀원이 별도 데이터베이스 없이 서버를 실행하고, 이후 인증·근로자·업무카드 API를 같은 보안·오류·DB 규칙 위에서 개발할 수 있도록 공통 기반을 완성합니다.
Closes #3
무엇이 바뀌나요?
local(H2),dev·prod(PostgreSQL),testProfile을 분리하고 모든 환경의 스키마 관리를 Flyway로 통일했습니다.V1__baseline.sql을 추가했습니다. 도메인 테이블은 각 기능 Issue에서 V2 이후 migration으로 추가합니다./health, Actuator Health, Swagger만 공개하고 나머지 API는 JWT 구현 전까지 기본 차단합니다.X-Request-Id추적을 추가했습니다.Clock, 교체 가능한UuidGenerator, React 개발 서버용 제한적 CORS를 추가했습니다.127.0.0.1에서만 열고, prod Swagger는 비활성화했습니다.gradlew실행 권한을 추가했습니다.어떻게 검증했나요?
./gradlew clean test— 로컬 테스트 8개 통과./gradlew build -x testgit diff --check/health200 확인POST /workers가 공통 401 JSON과 동일한request_id를 반환하는지 확인http://localhost:5173CORS preflight 확인보안·개인정보
DB_URL,DB_USERNAME,DB_PASSWORD,CORS_ALLOWED_ORIGINS가 없으면 시작되지 않습니다.request_id로 서버 로그와 연결합니다.API·DB·운영 영향
GET /health의 본문OK는 유지됩니다.X-Request-Id헤더가 추가됩니다.timestamp,status,code,message,path,request_id,field_errors입니다.V2__...sql부터 순서대로 추가해야 하며ddl-auto는validate를 유지합니다.후속 작업과 참고