/*내용*/
/*내용*/
Bare minimum requirements
먼저, 서버를 실행해야 합니다.
터미널에서 npm run server:part-3 으로 서버를 실행할 수 있습니다. 서버를 실행한 상태에서는 다음 URL을 통해 정보를 얻어올 수 있습니다.
최신 뉴스:
http://localhost:5000/data/latestNews
날씨 정보:
http://localhost:5000/data/weather
part-3/SpecRunner.html 를 통해 테스트를 실행할 수 있습니다.
Getting started
파일 이름에 표시된 번호 순서대로 진행해주세요.
basicChaining ➡️ promiseAll ➡️ asyncAwait
part-3/01_basicChaining.js은, fetch를 이용해서 해결해야 합니다.
http://localhost:5000/data/latestNews 요청과 http://localhost:5000/data/weather 요청의 결과를 하나의 객체로 합치는 것이 목표입니다.
part-3/02_promiseAll.js 은, 마찬가지로 getNewsAndWeather 과 정확히 같은 결과를 리턴합니다. 그러나 이번에는 반드시 Promise.all을 사용해서 해결해야 합니다.
part-3/03_asyncAwait.js 은, getNewsAndWeather, getNewsAndWeatherAll과 같은 결과를 리턴합니다. 이번에는 async 및 await 키워드를 사용해서 풀어야 합니다.