[함헌규] sprint11#32
Merged
pers0n4 merged 42 commits intocodeit-sprint-fullstack:express-함헌규from Feb 17, 2025
Hidden character warning
The head ref may contain hidden characters: "express-\ud568\ud5cc\uaddc-sprint11"
Merged
Conversation
Express 함헌규 sprint10
pers0n4
reviewed
Feb 12, 2025
There was a problem hiding this comment.
짧게짧게 끝나는 코드들은 적당히 모아도 괜찮을 것 같습니다.
자바처럼 파일당 클래스 하나라는 제약이 없으니... 저는 exception class류는 분류별로 모아서 관리하기도 해요.
pers0n4
reviewed
Feb 12, 2025
pers0n4
approved these changes
Feb 12, 2025
Comment on lines
+21
to
+26
| const articleService = new ArticleService( | ||
| new ArticleRepository(), | ||
| new LikeRepository(), | ||
| new CommentRepository(), | ||
| prismaClient, | ||
| ); |
There was a problem hiding this comment.
이런 코드를 볼 때면 항상 JVM 진영의 스프링에서 '딸깍'으로 DI를 할 수 있다는 점이 부러워지곤 하는 것 같아요. ㅋㅋ
저는 Node나 Python에서는 따로 DI 라이브러리를 사용하지 않는다면 index에서 인스턴스를 하나 만들어서 반환하는 식으로 사용하곤 했습니다.
Collaborator
Author
There was a problem hiding this comment.
이 부분을 제외하고 모두 리뷰 주신 내용 반영하였습니다! 이부분도 이후에 한번 수정해보도록 하겠습니다 감사합니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
공통
any타입의 사용은 최소화해 주세요Union,Intersection,Generics등 고급 타입을 적극적으로 사용해 주세요백엔드
tsconfig.json파일을 생성하고, 필요한 컴파일러 옵션을 설정해야 합니다. (예:outDir)package.json에 설정해 주세요. (예: 빌드 및 개발 서버 실행 명령어)ts-node와nodemon을 사용하여 개발 환경을 구성합니다nodemon과 함께ts-node를 사용하여.ts파일이 변경될 때 서버를 자동으로 재시작하도록 설정합니다Mongoose나Prisma등 ORM을 사용하는 경우, 모델에 대한 인터페이스 또는 타입을 정의합니다declare를 사용하여 타입을 오버라이드하거나 확장합니다주요 변경사항
멘토에게