Skip to content

Conversation

@Nick9417
Copy link
Contributor

@Nick9417 Nick9417 commented Nov 27, 2025

📌 PR 제목

9주차 미션 제출

✅ 변경 사항

  • network 모듈 만들기 (NetworkManager / Service 클래스 / API 인터페이스 / View 인터페이스 / Response 데이터클래스)
  • [SignUpActivity] 회원가입 API 연동하기 / 오류처리
  • [LoginActivity] 로그인 API 연동하기 / 오류처리
  • [SignUpActivity] 닉네임을 입력받아, 회원가입 API에 추가하기
  • Access Token 사용해보기

📷 영상 및 스크린샷

회원가입 성공 회원가입 실패
image image
API 반환값 (성공시) API 반환값 (실패시)
image image
로그인 성공 로그인 실패
image image
API 반환값 (성공시) API 반환값 (실패시)
image image
Token 이용
image

🔗 알게 된 사항

API를 이용하는 방법

📝 질문 사항

ViewModel의 observe를 이용하여 LiveData를 바꾸는 과정이 이해가 잘 안가요..

@Nick9417 Nick9417 linked an issue Nov 27, 2025 that may be closed by this pull request
@Nick9417 Nick9417 changed the base branch from main to Nick/main November 27, 2025 09:16
@Nick9417 Nick9417 requested a review from yangjiae12 November 27, 2025 09:17
Copy link
Member

@yangjiae12 yangjiae12 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

ViewModel이 observer를 이용하여 LiveData를 바꾸는 과정이 잘 이해가지 않는다고 하셨는데, 옵저버를 주도한다고 생각하시면 오히려 헷갈리게 되는 것 같습니다...!! 데이터(LiveData)가 변경되면, 가만히 있는 옵저버에게 변경 사항이 있다고 알리고, 옵저버는 그냥 그 연락을 받을 준비만 한다고 보시면 될 것 같아요

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

const val BASE_URL = "http://43.200.73.115:8080/"
Copy link
Member

Choose a reason for hiding this comment

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

작성하신 BASE_URL을 보니 IP 주소를 상수에 그대로 적으셨는데, 프로젝트를 할 때는 보통 저렇게 하지 않습니다. Git 같은 곳에 올릴 때 서버가 노출되면 보안상 좋지 않기 때문에 보통은 local.properties라는 파일에 숨겨두고, build.gradle을 통해 불러오는 방식을 씁니다! 나중에 한번 찾아보시면 좋을 것 같아요~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mission] 9주차 미션 제출

3 participants