프로젝트/게시판
-
DTO와 도메인을 분리해야 하는 이유프로젝트/게시판 2024. 4. 8. 23:12
게시판을 어느정도 만들고 JPA공부도 해보고싶어서 일단 친구에게 피드백을 받았다.(물론 아직 많이 남았는데,,JWT로그인 /게시물 CRUD/ 회원가입/ 페이징/ 검색 등 기초적인 부분만 끝났다.) 피드백 내용중 하나가 아래 내용이었다. 즉, 현재 계층마다 MemberDTO를 통해서 데이터를 전달하고 있는데 컨트롤러에서는 MemberSignUpRequest객체를 받고 서비스 계층에서 Member객체로 변환하는것이 좋다는 것이다. 이전에 RequestDTO / ResponseDTO를 나누는것이 좋다는 이야기를 들은적이 있는데 이번 기회로 좀 찾아보기로 했었다. 그렇게 유튜브를 뒤적거리는데 https://www.youtube.com/watch?v=OV8e88kIU-U&t=1s 해당 강의를 보게 되었고, 깨달음..
-
프로젝트 DB고르기프로젝트/게시판 2023. 12. 19. 22:59
새로운 프로젝트를 시작하려고 하는데 앞서, 우선 어떤 DB를 사용할지 고민을 해봤다. 우선 DB는 크게 RBDMS와 NoSQL로 나뉘는데, NoSQL에 대해서는 지난 포스팅에서 다뤘었다. https://hsch19.tistory.com/31 NoSQL이란 무엇인가? NoSQL이란? NoSQL은 사람에 따라 No SQL, Not Only SQL, Non-Relational Operational Database SQL로 엇갈리는 의견들이 있지만, 현재 Not Only SQL로 풀어 설명하는 것이 다수를 차지하고 있다. NoSQL은 비관계형 데이터베 hsch19.tistory.com 현재 만드려는 프로젝트는 우선 기본적인 웹 게시판을 만들어보고, 이후 주제를 정해서 점점 고도화를 시켜나가려고 한다. RDBMS..