title: App does not print information to the console
body: <p>EDIT: Updated question 1 for more clarity.</p>
  <p>So, this might be a stupid question, but here we go.</p>
  <p>A few months ago, during classes we wrote a simple weather app, with the intent to further develop it.</p>
  <p>My questions are:</p>
  <ol>
  <li>Where and how the function should be called/invoked?</li>
  <li>How to execute the code, so that the App prints the information received from the two APIs, in the console.</li>
  <li>Once the information is printed, how it can be manipulated in the front end, like displaying on a simple card?</li>
  </ol>
  <p>Here is the main code:</p>
  <pre><code>    import axios from 'axios';
  import {
      TimeStampToWeekDay,
      TimeStampToHoursMinutes
  } from '../utils/dateHelpers';
  
  
  const weatherAPIKey = process.env.WEATHER_API_KEY
  const weatherAPI = axios.create({
      baseURL: 'https://api.openweathermap.org/data/2.5/',
      headers: {'Content-Type': 'application/json'}
  });
  
  const locationAPIKey = process.env.LOCATION_API_KEY
  const locationAPI = axios.create({
      baseURL: 'https://api.opencagedata.com/geocode/v1/',
      headers: {'Content-Type': 'application/json'}
  });
  
  
  export const getDailyWeatherByCountry = async ({city, country}, success, failure) =&gt; {
      const {data: locData} = await locationAPI.get(`json?q=${country}, ${city}&amp;key=${locationAPIKey}`);
      const {lat, lng} = locData.results[0].geometry;
      const {data: weatherData} = await weatherAPI.get(`onecall?lat=${lat}&amp;lon=${lng}&amp;units=metric&amp;exclude=hourly,alerts,current,minutely&amp;appid=${weatherAPIKey}`)
      console.log(weatherData.daily);
      const formatedDays = weatherData.daily.map(({temp, clouds, dt, sunrise, sunset, wind_deg, wind_speed}) =&gt; ({
          temp: temp.day,
          cloudLevel: clouds,
          weekDay: TimeStampToWeekDay(dt),
          sunrise: TimeStampToHoursMinutes(sunrise),
          sunset: TimeStampToHoursMinutes(sunset),
          windDeg: wind_deg,
          windSpeed: wind_speed
      }))
      console.log(weatherData.daily[0])
      console.log(formatedDays[0])    
  }
  </code></pre>
  <p>And here is also the date helpers code(if needed):</p>
  <pre><code>    const days = ['Sunday', 'Monday', 'Tueday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
  export const TimeStampToWeekDay = (timestamp) =&gt;{
      return days[new Date(timestamp * 1000).getDay()];
  }
  
  export const TimeStampToHoursMinutes = (timestamp) =&gt; {
      const date = new Date(timestamp * 1000);
      return `${date.getHours()}: ${date.getMinutes()}`;
  }
  </code></pre>
  <p>I have also the whole project uploaded on GitHub, if that makes it easier to analyze it.</p>
  <p><a href="https://github.com/mrvanagas/108-weather-api" rel="nofollow noreferrer">Github link</a></p>