Live Demo 👉 Weather App
![Screenshot 2023-12-08 at 14 33 49](https://private-user-images.githubusercontent.com/101556296/289112142-1de7ba14-ac98-4861-8dbc-42486e1ba2ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4NTUwMDYsIm5iZiI6MTcxOTg1NDcwNiwicGF0aCI6Ii8xMDE1NTYyOTYvMjg5MTEyMTQyLTFkZTdiYTE0LWFjOTgtNDg2MS04ZGJjLTQyNDg2ZTFiYTJjYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMVQxNzI1MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjI4YWVkZGRlODQzZTMzY2EzODQwODM1NzlmZWM4MGE2ZDZmNjEyZWY4NDlhMjg5MGI1MTE1YzA0NzgyMzFkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kGX1GRuRWIyq3KfzA_Dc_3SMuVYvqGYxtysmbI3OI_0)
Project weather app has been set as part of The Odin Project. After learning async/await, promises & thenables and APIs. I was able to search for a specific location and toggle displaying the data in Fahrenheit or Celsius. I was able change the look of the page based on the data. This project took me 3 days to complete.
- Write the functions that hit the API. You’re going to want functions that can take a location and return the weather data for that location. For now, just console.log() the information.
- Write the functions that process the JSON data you’re getting from the API and return an object with only the data you require for your app.
- Set up a simple form that will let users input their location and will fetch the weather info (still just console.log() it).
- Display the information on your webpage!
- Add styling
- Optional: add a ‘loading’ component that displays from the time the form is submitted until the information comes back from the API. Use DevTools to test for low-end devices.
Rozla-Dev 09-10-2023