Skip to content

Instantly share code, notes, and snippets.

@heiso
Last active December 28, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heiso/a23b88754db90eadcc94d0065f4d38de to your computer and use it in GitHub Desktop.
Save heiso/a23b88754db90eadcc94d0065f4d38de to your computer and use it in GitHub Desktop.

Technical test

Goal

Make a simple web app that will display the weather in a given list of capital city, through the use of the two following APIs: restcountries to list capital cities, and openweathermap to return the weather in a given city (retrieved from restcountries). You are free to design your own layout, but make sure to keep a simplistic theme, and a coherent correlation between a city and its weather. As a bonus, think about offline and caching functionalities (serviceWorker).

Data

Countries API

Documentation

https://restcountries.eu/rest/v2/regionalbloc/eu

Weather API

You'll need to create a free account.

Documentation

https://api.openweathermap.org/data/2.5/weather?q=city_name&APPID=token

Notes

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