codestates / codestates/WeaDresser

[Dev Log] 2021-12-2(목) / 설동혁

Open
#79 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: ''

---

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

- Record 페이지 구현 진행 중
- 내장된 geolocation api 외에 google geolocation api에 대해 시도 2일차

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

- 어제부터 난항을 겪었던 google geolocation 위치호출을 민찬님과 해결하고 있는 중이다.

```js
// redux-thunk를 활용

export function getLocationData(lat, lot) {
return (async dispatch => {
const result = await axios.get(`https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lot}&appid=${process.env.REACT_APP_API_KEY}`)
.catch(err => console.log('err', err));
const { coord, main, name, sys, weather } = result.data;
dispatch(getWeatherData({ coord, main, name, sys, weather }))
})
};

```

Contributor guide

No contributing guide indexed for this repository

Research direction

This issue is a development log about a Record page and an attempted geolocation/weather API integration; no repository files or tests are named. There is no requested code change or completion criterion to follow, so first confirm whether this log has been superseded before attempting any work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.