Event Service 백엔드 API 개발 및 테스트 완료

- Event Service API 엔드포인트 추가 (이벤트 생성, 조회, 수정, AI 추천, 배포)
- DTO 클래스 추가 (요청/응답 모델)
- Kafka Producer 구성 (AI 작업 비동기 처리)
- Content Service Feign 클라이언트 구성
- Redis 설정 추가 및 테스트 컨트롤러 작성
- Docker Compose 설정 (Redis, Kafka, Zookeeper)
- 백엔드 API 테스트 완료 및 결과 문서 작성
- JWT 테스트 토큰 생성 스크립트 추가
- Event Service 실행 스크립트 추가

테스트 결과: 6개 주요 API 모두 정상 작동 확인

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
merrycoral
2025-10-27 17:24:09 +09:00
parent 55e546e0b3
commit d89ee4edf7
26 changed files with 1701 additions and 335 deletions
@@ -36,11 +36,15 @@ spring:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
timeout: 60000ms
connect-timeout: 60000ms
lettuce:
pool:
max-active: 10
max-idle: 5
min-idle: 2
max-wait: -1ms
shutdown-timeout: 200ms
# Kafka Configuration
kafka:
@@ -75,13 +79,17 @@ management:
web:
exposure:
include: health,info,metrics,prometheus
base-path: /actuator
endpoint:
health:
show-details: always
show-components: always
health:
redis:
enabled: false
livenessState:
enabled: true
db:
readinessState:
enabled: true
# Logging Configuration
@@ -90,6 +98,8 @@ logging:
root: INFO
com.kt.event: ${LOG_LEVEL:DEBUG}
org.springframework: INFO
org.springframework.data.redis: DEBUG
io.lettuce.core: DEBUG
org.hibernate.SQL: ${SQL_LOG_LEVEL:DEBUG}
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
pattern:
@@ -115,6 +125,10 @@ feign:
readTimeout: 10000
loggerLevel: basic
# Content Service Client
content-service:
url: ${CONTENT_SERVICE_URL:http://localhost:8082}
# Distribution Service Client
distribution-service:
url: ${DISTRIBUTION_SERVICE_URL:http://localhost:8084}
@@ -140,3 +154,8 @@ app:
timeout:
ai-generation: 300000 # 5분 (밀리초 단위)
image-generation: 300000 # 5분 (밀리초 단위)
# JWT Configuration
jwt:
secret: ${JWT_SECRET:default-jwt-secret-key-for-development-minimum-32-bytes-required}
expiration: 86400000 # 24시간 (밀리초 단위)