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

[Feature] Deploy after changing to firestore #32

Merged
merged 2 commits into from
Nov 28, 2020

Conversation

saseungmin
Copy link
Collaborator

@saseungmin saseungmin commented Nov 28, 2020

  • json-server에서 firestore로 변경
  • firebase에 호스팅

- change from json-server to firestore
- firebase initial settings
- deploy with firebase
Comment on lines +4 to +11
const response = await db.collection('groups').get();

const groups = response.docs.map((doc) => ({
...doc.data(),
id: doc.id,
}));

return groups;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • 테스트를 어떻게 할 수 있을까...

Choose a reason for hiding this comment

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

해당 테스트를 왜 해야하나요? 이 부분을 테스트함으로써 어떤 확신을 얻을수 있을까요?

개인적으로는 API의 테스트가 굉장히 애매한것 같아요 ㅎㅎ 프론트보단 백엔드 쪽에서 API 기능 자체를 테스트 하는게 맞을 것같고, 만약 fetcher helper와 같이 프론트에서 처리를 해주는 부분이 있다면 그 부분은 프론트 테스트가 필요하겠죠.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

그렇군요.. 😢

아직 테스트를 작성하는데 있어서 부족함이 있는 거 같습니다.
리뷰 감사합니다!

Comment on lines +15 to +21
const response = await db.collection('groups').doc(id).get();

if (!response.exists) {
return null;
}

return response.data();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • 방법은 있는거 같은데 활용이 안된다.

@saseungmin
Copy link
Collaborator Author

saseungmin commented Nov 28, 2020

  • firebase 호스팅을 이용해 배포 (https://sweet-1cfff.web.app/)
  • firebase 테스트에 시간을 너무 투자했다. 어제 오늘 계속 고민해보고 찾아봤지만 어떻게 해야할지 모르겠다.
  • 또한, PR의 규모가 너무 켜졌던거 같다.

@saseungmin saseungmin merged commit 7d56128 into CodeSoom:main Nov 28, 2020
@saseungmin saseungmin mentioned this pull request Nov 28, 2020
20 tasks
@Kihyun92
Copy link

드디어 동료분들께 공유할 수 있게 됐네요~ 👏👏👏

@saseungmin saseungmin deleted the firebase-settings-to-deploy branch July 5, 2021 19:55
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.

None yet

2 participants