Weather CLI - Interactive Terminal-based Weather App with Comprehensive Error Handling#5
Open
Psikuvit wants to merge 6 commits into
Open
Conversation
- Remove Express server in favor of CLI tool - Add interactive city input using readline - Implement comprehensive error handling: * Invalid city names * Network errors * Invalid API keys * General API errors - Use ES6+ features (destructuring, async/await) - Format weather output with emoji and clean display
- Rename project to weather-cli - Remove Express dependency (not needed for CLI) - Keep dotenv for environment variable management - Update project description and keywords
- Add .gitignore to exclude .env and node_modules - Add .env.example as template for API key setup - Add comprehensive README with: * Installation instructions * Usage examples * Error handling scenarios * Project structure * Technologies used
- Fix data parsing to match weatherapi.com JSON structure - Update error handling for weatherapi.com error codes - Correct API documentation comments - Display weather data properly (temp_c, wind_kph, pressure_mb)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
An interactive command-line weather application that fetches real-time weather data from WeatherAPI.com with robust error handling and clean ES6+ JavaScript architecture.
Key Features
Error Handling Scenarios
Valid City Input
🏗️ Architecture & Technologies
Core Technologies
ES6+ Features Utilized
Project Structure