Open
Conversation
- 로그인 한 유저만 좋아요 가능 - 중복으로 좋아요 방지 - 좋아요 수 확인 가능
- 사용자 스키마 role 필드 추가 (기본값 normal) - 로그인 페이지에 로그인 방법 선택 - admin 권한 게시글 수정 삭제 모두 가능
pororori
reviewed
Nov 17, 2025
pororori
left a comment
There was a problem hiding this comment.
아영님! 이번 과제 구현하시느라 정말 고생 많으셨습니다 좋아요, 댓글, 권한 기반 기능까지 잘 반영하셔서 요구사항을 충실히 만족시킨 점이 돋보였습니다. 코드도 직관적으로 작성되어 이해하기 쉬웠습니다. 위에서 제안드린 개선 포인트를 반영하면 더욱 안정적이고 완성도 높은 게시판이 될 것 같습니다!
| <p className="text-sm text-gray-500">아직 댓글이 없습니다.</p> | ||
| ) : ( | ||
| <ul className="space-y-3"> | ||
| {comments.map((comment) => ( |
There was a problem hiding this comment.
key 값으로 c.id를 사용하는 건 좋지만, 혹시 서버에서 id가 중복되거나 없는 경우를 대비해 index를 함께 활용하거나 id 생성 로직을 보강하면 안정성이 더 높아질 것 같습니다.
| {result.map((post) => ( | ||
| <div className="list-item" key={post._id.toString()}> | ||
| <div className="flex items-center justify-between"> | ||
| <Link href={`/detail/${post._id}`}> |
There was a problem hiding this comment.
게시글 내용이 길 경우 리스트 화면에서 너무 많이 노출될 수 있습니다. post.content.slice(0, 100) 같은 방식으로 미리보기 글자 수를 제한하면 가독성이 개선됩니다.
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.
⛏️ 7주차 리드미 바로가기
2025-11-16.3.23.20.mov