-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat-be: Redis 로컬 환경 설정 #822
base: be/develop
Are you sure you want to change the base?
Conversation
1728982317.884359 |
📌 Test Coverage Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 냥인😃😃
낯선 개념이라 도입에 고민이 많았을 것 같은데 잘 해주신 것 같습니다!
제가 상황이 상황인지라,,^^ 실행은 못해보고 코드로 봤을 때 보이는 지점만 몇 가지 제안드렸습니다
천천히 보시고 의견 남겨주세요오
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test용이라면 test
패키지에 넣어두면 좋을 것 같습니다!
또한, 현재 test controller에 존재하는 메서드에서는 facade 계층을 이용하지 않고 있는데, 추후 추가될 기능을 생각해서 facade도 지금 초안 정도는 만드시는것이 좋을 것 같아요 :>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제목이 local인 것에 비해 redis만 관리하고 있는 스크립트니까 redis로 파일명을 바꾸거나 따로 local용 docker-compose 파일을 만드시는게 어떨까요?
image: redis:latest | ||
container_name: redis-local | ||
ports: | ||
- "6379:6379" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6379-> 6379로 포트 바인딩을 같은 포트 번호로 하는 것보다
User Port 범위(1024~49151) 내의 임의의 포트를 지정해주는 것이 어떨까요?
로컬에서 모종의 의유로 중복 사용될 수도 있을 것 같아서요
|
||
@RestController | ||
@RequestMapping("/redis-test") | ||
public class RedisTestController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 테스트 클래스에서 key의 life cycle을 관리하는 테스트도 만들어보시는 것이 어떨까요?
저희 메일 인증 기능의 핵심인 것 같아서요!
목적
작업 세부사항
참고사항
각자 로컬에 설치된 도커에서 아래 명령어 실행하면 됩니다(설치되어 있겠죠..?).
레디스 연동 확인 겸 테스트 컨트롤러랑 테스트 코드를 작성해 두었는데요, 맞게 작성했는지 확신은 안 서네요. 😅
/redis-test
엔드포인트로 요청 보내면 됩니다.질문
REDIS_01
closes #821