2022년-3월-22일
Retrospection
1. 오늘 한 일
- 새로운 기능 회의 및 API url 설계
- 코드리뷰 바탕으로 Update API Code Refactoring ( + 비밀번호 해쉬화 추가 )
- 이미지 업로드 기능을 위해서 multer 모듈 공부
2. 어려움을 겪은 일
이미지 업로드 기능 생각보다 쉽지 않네... 배포를 고려해야하니..
안되면 되게 하라..! 근데 어떻게 하지..? (능력자님 믿습니다..!)
3. TIL ( Today I Learned )
1) Update 할 때 한번 요청으로 수정하기
$set 연산자 사용
https://docs.mongodb.com/v3.0/reference/operator/update/set/
$set — MongoDB Manual
Navigation This version of the documentation is archived and no longer supported. $set Definition $set The $set operator replaces the value of a field with the specified value. The $set operator expression has the following form: { $set: { : , ... } } To s
docs.mongodb.com
Mongoose findOneAndUpdate 여러 필드 한번에 업데이트 하는 방법
Mongoose findOneAndUpdate Updating Multiple Fields
The findOneAndUpdate method doesn't work properly. I'm trying to update all the fields all at once but it's only updating (setting) the last field. It's always only the last field. Can someone tell...
stackoverflow.com
2) 이미지 업로드 기능을 구현할 수 있는 multer 모듈
multer 모듈 공부
Express + Multer, 어렵지 않게 사용하기
안녕하세요 ❗️ 오늘은 Express 를 사용해서 서버를 구축할 때, 이미지를 다루는 방법에 대해 알아볼 예정입니다. 게시글에 이미지를 첨부하는 서비스나, 프로필 사진 업데이트 기능을 만들고 싶
gngsn.tistory.com
https://github.com/expressjs/multer/blob/master/doc/README-ko.md
GitHub - expressjs/multer: Node.js middleware for handling `multipart/form-data`.
Node.js middleware for handling `multipart/form-data`. - GitHub - expressjs/multer: Node.js middleware for handling `multipart/form-data`.
github.com
https://any-ting.tistory.com/19
[Node.js] Express Multer 파일 업로드
- 지난 시간 안녕하세요. 지난 시간에는 Express 웹 애플리케이션 프레임워크을 사용해서 RESTFaul API 서버를 만들어 보았습니다. 혹시 지난 글을 못 보신 분들은 아래 글을 통해 설치 및 구축을 하고
any-ting.tistory.com
4. 오늘 느낀 점
안되면 되게 하라..! 근데 어떻게 하지..?
이것도 하고 싶고..! 저것도 하고 싶고..! 배움에서 중요한건 궁금증!!
5. 내일 할 일(계획)
- Following-back-모든팔로우 조회 API 구현
- Following-back-모든팔로우 조회 API 명세서 작성하기
'프로젝트 회고 > 슬기로운 코딩 생활 🐰' 카테고리의 다른 글
[포트폴리오 공유 웹 서비스] 2022년 3월 24일 회고 (0) | 2022.03.24 |
---|---|
[포트폴리오 공유 웹 서비스] 2022년 3월 23일 회고 (0) | 2022.03.23 |
[포트폴리오 공유 웹 서비스] 2022년 3월 19일 회고 (0) | 2022.03.19 |
[포트폴리오 공유 웹 서비스] 2022년 3월 18일 회고 (0) | 2022.03.18 |
댓글