본문 바로가기

Project/GameFriendApp49

Portfolio : GGAMF Portfolio : GGAMF 1. GGAMF 소개 2. GGAMF 소스 코드 3. GGAFM 시연 영상 4. GGAMF Backend PPT 5. 담당 작업 기능 별 상세 보기 1. GGAMF 소개 https://ppoddorin.tistory.com/entry/GGAMF-Game-Friends-Application GGAMF : Game Friends Application GGAMF : Game Friends Application 1. GGAMF 소개 2. 사용자 시나리오 3. 개발환경 & 사용언어 & 아키텍처 4. 테이블 설계도 5. 사용 기술 6. Git Branch 전략 7. 프로젝트를 마치며 1. GGAMF 소개 2. 사용자 시나리오 3. ppoddorin.tistory.com 2. GGAM.. 2023. 1. 13.
GGAMF : 담당 작업 기능 별 상세보기 GGAMF : 담당 작업 기능 별 상세보기 📌 파티방 생성 & Junit Test https://getinthere.notion.site/Junit-Test-921c51883d0e4d5e83d2485a50ceb785 하브루타노트(조혜린/파티방 생성 & Junit Test) 1. 작업이해도 getinthere.notion.site 📌 파티방 참가 & Junit Test https://getinthere.notion.site/Junit-Test-0fbd5acc3b2e46a39352abcc5cfa74af 하브루타노트(조혜린/파티방 참가 & Junit Test) 1. 작업이해도 getinthere.notion.site 📌 파티방 나가기 & Junit Test https://getinthere.notion.sit.. 2023. 1. 13.
GGAMF : Game Friends Application GGAMF : Game Friends Application 1. GGAMF 소개 2. 사용자 시나리오 3. 개발환경 & 사용언어 & 아키텍처 4. 테이블 설계도 5. 사용 기술 6. Git Branch 전략 7. 프로젝트를 마치며 1. GGAMF 소개 2. 사용자 시나리오 3. 개발환경 & 사용언어 & 아키텍처 4. 테이블 설계도 5. 사용 기술 6. Git Branch 전략 7. 프로젝트를 마치며 2023. 1. 13.
Ggamf : 추천 겜프 삭제 & Junit Test 추천 겜프 삭제 & Junit Test 추천 겜프를 삭제하는 기능이 필요하다고 했다. 그래서 새로운 테이블을 추가하기로 했다. Controller 코드 작성 Entity 코드 작성 DTO 작성 Service 코드 작성 Repository 코드 작성 Test 코드 작성 Controller 코드 작성 // 추천 겜프 삭제 = RecommendBanuser 테이블 insert @AuthorizationCheck @PostMapping("/ggamf/user/{userId}/recommendban/{banuserId}") public ResponseEntity recommendBan(@RequestBody RecommendBanReqDto recommendBanReqDto, @PathVaria.. 2022. 12. 21.
Ggamf : Repository 작성 쿼리 Junit Test Repository 작성 쿼리 Junit Test 폴더 구조 세팅 Test 코드 작성 폴더 구조 세팅 테스트 코드 작성 파일을 테스트 대상 파일의 위치와 일치시키기 위해 폴더 구조를 세팅한다. Test 코드 작성 기존 테스트 코드처럼 더미데이터를 설정해주고, EntityManager와 Repository들을 주입받았다. Repository 테스트는 @DataJpaTest 를 이용한다. 그렇기 때문에 auto-increment 초기화 쿼리를 작성해주고 @AfterEach public void tearDown() { // auto-increment 초기화 em.createNativeQuery("ALTER TABLE users ALTER COLUMN `id` RESTART WITH 1").executeUpda.. 2022. 12. 14.
Ggamf : 페이징(전체파티방목록보기) & Junit Test 페이징(전체파티방목록보기) & Junit Test 전체 파티방 목록보기에 Paging을 적용한다. 페이지는 0부터 시작, 한 페이지에 10개 씩 설정한다. Controller 코드 수정 Service 코드 수정 Repository 쿼리 수정 Postman 확인 Test 코드 작성 Controller 코드 수정 page 를 쿼리스트링으로 받아온다. 쿼리스트링으로 받아오는 부분에서 @RequestParam을 적용해준다. // 전체 파티방 목록 보기 -> 카테고리별, 페이징, 검색 @GetMapping("/party/user/{userId}/list") public ResponseEntity findAllRoom(@PathVariable Long userId, @AuthenticationPrincipal Lo.. 2022. 12. 14.