Skip to content

SofiaBracho/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather React App


This is a simple Weather React App that displays the current weather of the user's location. The app uses the TrueWay Geocoding API to get the user's location and the OpenWeatherMap API to get the weather data.

⚙️ Key Features

  • Get coordinates: The app uses the navigator.geolocation.getCurrentPosition() method to get the user's current location.
  • Reverse geolocation: The fetchGeolocation() method is called with the user's latitude and longitude to get the user's city and country from the TrueWay Geocoding API.
  • Fetch weather data: The fetchWeatherData() method is called with the user's city and country to get the weather data from the OpenWeatherMap API. The weather data is displayed on the screen using the WeatherData component.

🖥️ Demo

Diary Demo GIF

🛠️ Getting Started

Prerequisites

Here's what you need to be able to run this App:

  • Node.js installed
  • NPM (Node Package Manager) installed

1. Clone the repository

Execute the following commands:

git clone https://github.com/SofiaBracho/weather.git
cd weather

2. Install dependencies

Execute the command:

npm install

3. Run local server

npm start

🔀 Contributing

This wheather app is open to anyone from the community to contribute. If you'd like to, fork the repository and make changes. Pull requests are welcome.

👥 Author

Author

Sofia Bracho
Web developer

About

Simple weather conditions app using react and geolocation API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors