Skip to content

Conversation

@hyeonda02
Copy link
Member

@hyeonda02 hyeonda02 commented Apr 6, 2025

🌱 관련 이슈

📌 작업 내용 및 특이사항

  1. 테스트 환경에서 FastApiService 실행 방지

    • @Profile("!test") 추가로 @PostConstruct 실행 차단
    • FastApiService, 필요시 FastApiController도 프로파일 조건 지정 가능
  2. MySQL → Neo4j 변경

    • 기존 MySQL 의존성 및 코드 제거
    • Spring Data Neo4j 의존성 추가
    • 테스트용 Entity, Repository 간단 작성 ( DB 연결 확인용 )
    • 기존 엔티티들과 관계, 로직 변경
  3. Docker 기반 Neo4j 인프라 구성

    • docker-compose.yml에 Neo4j 인스턴스 설정
    • 로컬 환경에서 손쉽게 DB 연결 가능
  4. CI/CD 설정 업데이트

    • GitHub Actions CI/CD 파일에서 Neo4j 관련 의존성 반영
    • 테스트 통과 여부 확인용 단계 추가

✅ 테스트

  • CI 통과 확인 (GitHub Actions)
  • profile=test 환경에서 FastApiService 미동작 확인
  • Neo4j 연결 및 Entity 테스트 정상 작동

👀 기타

  • 테스트 환경에서 외부 API 호출이 일어나지 않도록 하는 안전장치 필요해서 @Profile 사용
  • 추후 설정 분기 세분화 필요 시, @ConditionalOnProperty 도 고려
  • Neo4j 구조로 옮기면서 테스트 DB 접근/구조 수정 필요할 수 있음..

@hyeonda02 hyeonda02 added 🌏 Deploy 배포 관련 🔨 Refactor 코드 리팩토링 labels Apr 6, 2025
@hyeonda02 hyeonda02 self-assigned this Apr 6, 2025
@hyeonda02 hyeonda02 linked an issue Apr 6, 2025 that may be closed by this pull request
8 tasks
@hyeonda02 hyeonda02 changed the title Refactor/#38 ♻️ [Refactor] Neo4j 설정 추가 및 개발/배포 환경 분리 Apr 6, 2025
@hyeonda02 hyeonda02 merged commit 3b9aede into develop Apr 6, 2025
1 check passed
@hyeonda02 hyeonda02 deleted the refactor/#38 branch April 6, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌏 Deploy 배포 관련 🔨 Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

♻ [refactor] Neo4j 설정 추가 및 개발/배포 환경 분리

2 participants