How whizz76/weatherapp works
This is a Spring-based weather lookup app with a browser UI: users search by city and see current conditions and related measurements. The browser code requests /api/weather and renders the returned data; the tree identifies corresponding controller, service, and response-model modules. Backend source and README content were not available to verify controller-to-service calls or any weather-data provider, so those links are omitted.
Main entry points: script.js Weather UI · index.html Weather page · WeatherController.java Weather controller
Components 7
Browser experience
- Weather page
app/src/main/resources/static/index.html - Weather UI
app/src/main/resources/static/script.js
Weather backend
- Weather controller
app/src/main/java/com/example/WeatherApp/controller/WeatherController.java - Weather service
app/src/main/java/com/example/WeatherApp/service/WeatherService.java - Weather response
app/src/main/java/com/example/WeatherApp/model/WeatherResponse.java - Application startup
app/src/main/java/com/example/WeatherApp/WeatherAppApplication.java
Other components
- Visitor
Connections 4
- Visitor → Weather page: opens
- Weather page → Weather UI: loads
- Weather UI → Weather controller: requests weather
- Weather controller → Weather UI: returns response