codestates / codestates/WeaDresser

[Dev Log] 2021-12-1(수) / 설동혁

Open
#68 0 comments 0 reactions 0 assignees View on GitHub
Dev-Log
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

---
name: Dev Log
about: 개발 일지
title: ''
labels: ''
assignees: ''

---

### 오늘은 어떻게 프로젝트에 기여했나요?

- redux-thunk 사용법에 대해 추가 학습
- 내장된 geolocation api 외에 google geolocation api에 대해 시도

### 오늘의 프로젝트에서 힘든 점은 무엇인가요?

- redux-thunk 에 대한 이해와 사용법이 어려워 아직까지 진행되지 못했다.
- google geolocation 사용시 body에 필요한 객체가 유저로부터 받아오기 쉽지않아보인다.
- 기존 사용하던 geolocation api가 비동기적으로 작동하는 듯 하여 랜딩페이지 날씨 업데이트가 잘 되지 않는다.

```js
// 내장된 geolocation api
function askForCoords() {
navigator.geolocation.getCurrentPosition(handleGeoSucces, handleGeoError);
}

async function handleGeoSucces (location) {
const lat = await location.coords.latitude;
const lot = await location.coords.longitude;
getWeather(lat, lot); // open weather api fetch함수
}

function handleGeoError () {
console.log('Cannot get your location');
}
```

### 내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?

- [x] 랜딩페이지 반응형 구현
- [x] redux-thunk 사용하여 dispatch (추가 학습)
- [x] 다른 geolocation api 물색

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.