Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLIENT & Server] Week2 마무리 #92

Merged
merged 148 commits into from
Nov 21, 2022
Merged

[CLIENT & Server] Week2 마무리 #92

merged 148 commits into from
Nov 21, 2022

Conversation

mjsdo
Copy link
Member

@mjsdo mjsdo commented Nov 21, 2022

🤷‍♂️ Description

  • 로그인, 회원가입, 팔로잉 조회

NaayoungKwon and others added 30 commits November 13, 2022 19:25
- app.controller.ts -> socket.controller.ts
- app.controller.ts -> socket.controller.ts
- app.controller.ts -> socket.module.ts
- app.controller.spec.ts -> socket.controller.spec.ts
- app.e2e-spec.ts
- userInfo에 있는 스키마(pw, refreshToken)를 user 스키마에 통합
- SignInDto : 로그인 인풋 포맷
- SignUpDto : 회원가입 인풋 포맷
- usersRepository -> userRepository
- ./user/auth -> ./auth
- auth 구현중인 내용 있음
- ./user/auth/dto -> ./auth/dto
- @api/* : ["apps/api/*"]
- 비밀번호 hash로 변환
- DB 저장
- 중복시 예외처리
- message(string) -> data(any)
- any로 둔 이유 : 반환하는 것이 너무 다양해서 타입을 지정하기가 어려움
* refactor: user repo create 수정 #9

* feat: 팔로우 요청 처리 #20

* refactor: 팔로우 요청 error handling #20
- 매개변수로 들어오는 condition에 해당하는 것을 하나만 찾아서 반환해주는 함수
- DB에 아이디가 없으면 예외처리
- 비밀번호가 일치하지 않으면 예외처리
- service에서 응답을 생성했던 것을 controller 에서 응답 생성하도록 수정
- 변경 전 : service에서 error 발생 시 반환하고, controller에서 반환값이 error이면 에러 처리
- 변경 후 : service에서 error 발생 시 바로 throw 하기 (error 발생 시 바로 처리)
Copy link
Member

@soomanbaek soomanbaek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨어요!

Copy link
Member

@soomanbaek soomanbaek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨어요!

@mjsdo mjsdo merged commit 6e92e96 into main Nov 21, 2022
@mjsdo mjsdo modified the milestones: ⛰️ Week3, ⛰️ Week2 Nov 25, 2022
@mjsdo mjsdo changed the title [CLIENT & Server] Release 1.0 [CLIENT & Server] Week2 마무리 Nov 25, 2022
@mjsdo mjsdo added 🌐 server 서버 작업 🌈 client Client 작업 ✈️ distribution 배포, main 브랜치로 병합 labels Nov 25, 2022
@mjsdo mjsdo self-assigned this Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌈 client Client 작업 ✈️ distribution 배포, main 브랜치로 병합 🌐 server 서버 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants