How azaansaeed47-dev/weather-app works
This is a small browser weather app. A user enters a city and clicks the lookup button; the JavaScript fetches current metric weather from OpenWeatherMap, then displays the city, temperature, description, and icon, or reveals an error state. The supplied excerpt supports the request and display behavior, but not the contents of the HTML or styling, so those are not mapped as separate components.
Main entry points: p2.js Weather lookup
Components 5
Other components
- User
- Weather lookup
p2.js - OpenWeatherMap
- Weather display
p2.js - Error display
p2.js
Connections 5
- User → Weather lookup: submits city
p2.js - Weather lookup → OpenWeatherMap: fetches weather
p2.js - OpenWeatherMap → Weather lookup: returns data
p2.js - Weather lookup → Weather display: displays data
p2.js - Weather lookup → Error display: shows error
p2.js