National Weather Service Forecast App

Link to repository

A Spring MVC web application that retrieves and displays real-time weather forecasts by integrating with the National Weather Service API using user-provided geographic coordinates.

Tech & Skills Used:

  • Java, Spring Boot (MVC)

  • Thymeleaf templates

  • REST API integration

  • Jackson JSON parsing

  • Bean Validation (Jakarta Validation)

  • Layered architecture (Controller / Service / DTO)

  • Error handling and input validation

  • CSS styling

The application follows a layered MVC architecture. User input is validated at the controller layer, grid metadata is retrieved via the NWS Points API, and forecast data is fetched from the NWS Grid points API. JSON responses are mapped to DTOs using Jackson and rendered using Thymeleaf templates.

  • Allows users to retrieve official U.S. weather forecasts using latitude and longitude

  • Demonstrates multi-step REST API integration with server-side rendering