Skip to content

karldreta/WeatherApp-OdinProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App API: Odin Project

This project is part of The Odin Project curriculum, specifically designed to consolidate my understanding of JavaScript, APIs, and asynchronous programming. The main goal was to create a functional weather application that retrieves and displays real-time weather data based on user input.

See Live Preview

Overview

In this project, I utilized Async/Await, JavaScript promises, and various other modern web development techniques to build a weather app that fetches data from a weather API. This was a week-long exercise, completed on 23 SEP 2024.

The focus was primarily on logic, fetching, and displaying the data dynamically through DOM manipulation, while styling was kept minimal since the emphasis was more on functionality than appearance.

What I Learned

  • Async/Await: Leveraged asynchronous JavaScript to handle API requests and data fetching efficiently.
  • Parsing: Handled data from APIs, processed and displayed it in an organized manner.
  • Object Navigation: Worked on navigating complex objects from API responses.
  • NPM Packages: Installed and utilized packages like date-fns to simplify date handling.
  • Error Handling: Implemented robust error handling to manage failed requests or invalid user input.
  • Promises/Fetching: Gained practical experience with promise-based API fetching.

New Insights

One of the most useful techniques I discovered is how vital Async/Await is when working with external APIs, making the code more readable and easier to manage. Additionally, parsing and handling API responses quickly improved my understanding of object navigation and DOM manipulation in a real-world context.

Challenges

The main challenge I faced was ensuring the app’s responsiveness and handling various edge cases, such as incorrect input and API errors. I also focused on making the app perform efficiently without unnecessary re-renders.

Conclusion

Though styling wasn't a priority in this exercise, I completed the project to solidify my JavaScript fundamentals, particularly around API interaction. I approached this project with speed in mind, as I wanted to catch up on lost time from my previous project. This experience has prepared me to confidently tackle more complex web development projects in the future.

About

This is an Odin Project: Weather App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published