CodingNic

Connect WeatherNow to the Weather API

Module Checkpoint

Connect WeatherNow to the Weather API 8 min read

Module Checkpoint

Task

Verify the API foundation.

File / section

Browser and terminal

Change

Test a valid city, an unknown city, and an invalid/missing key. Confirm the page remains usable and the error message is visible when the request fails.

Why this change matters

These cases exercise the success path and the two most important API failures handled by the app.

Test it

The request flow has loading, errors, API key handling, and a stored current-weather response.

Checkpoint

API integration foundation complete.