Architecture

Small Laravel API integration

The application keeps Weather-AI credentials on the server, validates coordinate input in controllers, and delegates outbound HTTP calls to a dedicated service class.

Blade frontend

Server-rendered pages keep the dashboard simple, fast, and easy to deploy.

Laravel service

WeatherAiService centralizes the base URL, Bearer token, timeout, retry policy, and JSON parsing.

Private API key

The browser never calls Weather-AI directly, so the API key is not exposed to client-side code.

Routes

GET / Default Nairobi weather dashboard.

GET /weather Coordinate-based weather lookup.

GET /usage API quota and usage display.

GET /about Project architecture notes.