How sanishpoudel/weather-app works
Weather-App is a browser weather lookup: a user enters a city, the app requests a seven-day forecast from Visual Crossing, then renders current conditions and the remaining days. The current and weekly views share weekday formatting and condition-icon selection. The excerpts show the request and rendering calls; the README documents weather checking but no additional capabilities. The graph omits build tooling and does not infer behavior from the unsampled template or styles.
Main entry points: index.js Search and fetch · displayToday.js Current conditions · otherDays.js Weekly forecast · getIcon.js Icon selection
Components 7
Search workflow
- Search and fetch
src/index.js
Forecast views
- Current conditions
src/displayToday.js - Weekly forecast
src/otherDays.js
Display helpers
- Icon selection
src/getIcon.js - Weekday formatting
src/getWeekday.js
Other components
- User
- Visual Crossing
Connections 8
- User → Search and fetch: searches city
src/index.js - Search and fetch → Visual Crossing: fetches forecast
src/index.js - Search and fetch → Current conditions: renders today
src/index.js - Search and fetch → Weekly forecast: renders week
src/index.js - Current conditions → Icon selection: selects icon
src/displayToday.js - Current conditions → Weekday formatting: formats day
src/displayToday.js - Weekly forecast → Icon selection: selects icons
src/otherDays.js - Weekly forecast → Weekday formatting: formats days
src/otherDays.js