X-weather is a responsive weather app developed with React, typescript and openweathermap APi.
- React
- Typescript
- OpenweatherMap API
- gsap
the main goal of this project is to create an responsive and user friendly app that allow users to get the current foreceast of any city in the world by simply providing the name of the city
-
Getting the users current location (city name) and displaying the current weather forecast for that city
- I used the javacript navigation api to get the user coordinates
- extracted the longitude and latitude from the retured data
- used the openweatherMap api to fetch the current weather forecase bases on the users longitude and latitude
-
Getting the current weather forecast of the city searched by the user
- I passed the user input to the Geocoding API provided by openweather map which returned the latitued and longitude of the city
- extracted the longitude and latitude from the retured data
- used the openweatherMap api to fetch the current weather forecase of the city searhed by the user