Skip to content

This is a test for a Front End Engineer job using weather API

Notifications You must be signed in to change notification settings

palloncino/FE-openweathermap-app

Repository files navigation

⚡️ Get Started

  1. Create an account with openweathermap.org

  2. Get your APIKey here

  3. Create a file in the root .env.local

  4. Add the following to it: REACT_APP_OPEN_WEATHER_API_KEY=<Your_Api_Key>

  5. Move forward to Available scripts


Available scripts

yarn

yarn start

↗️ Open localhost:3000



🌤 WEATHER APP

The aim of this test is to build a simple React app that displays the current weather info in London and weather forecasts for the next 5 days. The final user should also be able to refresh the view bypressing on a proper button.

🎨 Design

You are free to design the app according to what you think is the best solution in terms of UI/UX.

The minimum expected info to be displayed are:

  • Current weather:

    • Weather description
    • Temperature in Celsius Degrees (current, min and max)
    • Humidity percentage
    • Date of last update
  • Forecast item

    • Day
    • Weather description
    • Temperature in Celsius Degrees (current, min and max)

🤖 App behavior

The app should fetch and display the current weather info in London and weather forecasts for the next 5 days as soon as it gets open. Please consider this test like an app that should go to production, so error handling and any good practice is expected. As for the design step, it is up to you to implement features that you think are important for the final user for better usability.



🛠 Todos

  • tests
  • if mock flag true return mocks



Palloncino (Antonio Guiotto) Feb 2022

About

This is a test for a Front End Engineer job using weather API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages