Skip to content

CLI Weather App – OpenWeather Integration#10

Open
aasmaa01 wants to merge 1 commit into
MicroClub-USTHB:webfrom
aasmaa01:aasamaa01/weather-cli
Open

CLI Weather App – OpenWeather Integration#10
aasmaa01 wants to merge 1 commit into
MicroClub-USTHB:webfrom
aasmaa01:aasamaa01/weather-cli

Conversation

@aasmaa01

Copy link
Copy Markdown
Member

Summary

This PR implements a Node.js CLI application that fetches and displays current weather data for a specified city using the OpenWeather API.

The user can provide the city as a CLI argument or enter it interactively. The application retrieves the data, normalizes the API response, and formats it for clean console output.


Structure

  • index.js – CLI entry point and orchestration
  • services/weatherService.js – API communication and data normalization
  • utils/display.js – Console formatting logic

Features

  • Supports CLI argument or interactive input
  • Environment-based configuration via .env
  • Explicit HTTP error handling
  • Normalized response shape
  • Clean console formatting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant