React Weather Forecast

Launched Sunday, October 17th, 2021
This application delivers the most essential weather forecast data based on user's current location. React Weather Forecast is basic, clean, simple and easy to use. It was built with React, Node.js, HTML, CSS and JavaScript..

About the project

This is a weather forecast application, that delivers a simple, clean and minimalist layout, suitable for desktop and phone screens. This app was built using React and Node.

The main goal with this project was to release a simple and complete weather forecast app.

Live demo

Check out this project running on Netlify + Cyclic

You can also edit and view this project on Code Sand Box:


Edit Weather Forecast (Front)


Edit Weather Forecast (Back)


This application obtains user's current location and returns back to the client his city and district name, current weather conditions, detailed weather forecast for the current date and minimal and maximum temperature for the next few days.


The client-side of Weather Forecast was built with React, resulting in the following layout:



Mobile 1 Mobile 2


Desktop 1 Desktop 2


The following technologies were used to build Weather Forecast's front-end:


The back-end consists in a server developed with the Express Framework for Node, which listens to requests triggered by the front-end layer of the application.

This Node server has a sole endpoint that returns a set of weather data and the user's specific location:

  • /forecast: expects two parameters as a query string:
    • lat: user´s latitude
    • long: user´s longitude
  • Returns:
    • User's current city and district through reverese geolocation
    • Current weather conditions, like temperature, wind speed and humidity
    • Detailed weather forecast for the current date
    • Minimal and maximum temperature for the next days



External APIs

The following third-party APIs were used to create Weather Forecast's API responses:


The following technologies were used to build Weather Forecast server:

How to set up

If you wish to fork this project, you'll need to set up the following environment variables:


  • REACT_APP_BACK_URL (Server URL in order to send requests)


  • API_GEO (LocationIQ API key)
  • API_WEATHER (Open Weather Map API key)
  • PORT (Desired port to run express)


Weather Forecast was inspired by the following projects on Figma: