Skip to content

ronttizz/countriesapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Countries App

Deployd to Netlify at Countries App

Description

Countries app using REST countries to show some basic information about different countries in the world.

User can read more about one country by clicking Read More button on each country card.

Information displayed also includes weather data for the capital city provided by OpenWeatherMap.org.

Some information is still missing for example some countries doesn't have currency, language or capital city listed which may cause that no data is displayed, this can be seen when looking up for example Antartica.

Weather is provided for the capital city and as some countries doesn'have capital city the data can not be provided. Some differences in city names may be found as there might be different names for same city.

The data is only provided by the API's and I do not have control over those, so if you find errors regarding the API data please contact the API owner.

Background picture is provided by Greg Rosenke at Unsplash under Unsplash License.

Running the project

Important !

To run this application fully you will need an API key from OpenWeatherMap.org

Visit OpenWeatherMap.org to get yours.

Fork, clone or download the project.

Run command

npm install

Create .env.local file to project root folder and add following line with your own OpenWeatherMap API key:

REACT_APP_WEATHER_API = "YOUR_OWN_WEATHER_API_KEY_HERE"

Run command

npm start

Voilá, you have the project running, happy searching!

Ideas for next versions (notes)

  • if country doesn't have a capital city, we could use weather data for that country
  • displaying "no data available" when no language or currency is available