일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- CORS
- status code
- westagram
- 장고초기세팅
- pm2
- node
- bcrypt
- 트랜잭션
- javascript
- TypeError: this.boardRepository.createBoard is not a function
- JWT
- docker
- wecode
- rebase
- 스코프
- OSI7계층
- nodeJS
- Django
- django westagram
- Jest
- async/await
- typescript
- 노드
- 프로미스
- on_delete
- 자바스크립트
- crud2
- 실행 컨텍스트
- 호이스팅
- manytomanyfield
- Today
- Total
목록TypeError: this.boardRepository.createBoard is not a function (2)
될때까지
어익후 typescript 오류에 Nest.js오류에 정신이 없다 ㅋㅋㅋㅋ 그래도 담당한 팔로우 기능까진 모두 성공했다!! 천만다행이야 오늘도 못잘뻔했다! 오늘 하루 공부한 내용은 사진으로 대체하겠다. 포스팅으로 정리할 시간이 부족해!! # Repository 에러(해결) 오늘도 어제에 이어서 전반적인 Nest의 구조를 이해하는 데 초점을 뒀다. 유튜브를 참고하면서 Nest를 익히고 있었다. 영상과 똑같이 코드를 작성했는데 에러가 발생했다. "No repository for "BoardRepository" was found. Looks like this entity is not registered in current "default" connection?" BoardRepository를 찾을 수 없다. ..
# 인트로 3번째 기업과제는 새로운 프레임워크와 언어를 사용해서 과제를 진행하기로 했다. Nest.js와 Typescript를 공부해서 3일안에 해당 과제를 완료해야한다 파이팅!! # 모델링 이번 과제는 유저들이 서로 친구를 맺고 글을 올릴 수 있는 커뮤니티 앱 구현하기. 그리고 나는 팔로우, 언팔로우 기능을 맡게되었다. 팔로우 POST /follows 첨부된 토큰을 디코드하여 우리 사이트의 유저인지 확인 팔로우할 유저의 email을 입력한다. 해당 email이 유저 테이블에 저장되어있는지 확인하고 해당 유저의 id값을 가져온다. 이미 팔로우한 내역이 있는지 팔로우 테이블에서 확인하고, 팔로우를 했다면 409 에러를 반환한다. 유저의 email도 존재하고 팔로우한 내역이 없다면 팔로우 신청에 성공한다. ..