The CLI Weather App is a simple command-line interface application built with Go (Golang) that allows users to get weather information for a specified location. It utilizes the Weather API to fetch weather data and presents it in a user-friendly manner on the terminal.
- Get current weather information for a specific location.
Before running the CLI Weather App, you need to have the following:
- Go (Golang) installed on your system.
- An API key from Weather API. You can sign up for a free API key at Weather API.
- Clone this repository to your local machine:
git clone https://github.com/Ansh-Kushwaha/weather.git
cd weather
- Create a file named
.env
in the root of the project and add your Weather API key as follows:
API_KEY=YOUR_WEATHER_API_KEY
- Build the application:
go build
Run the CLI Weather App with the following command:
./weather <city_name>
<city_name>
: The name of the city for which you want to get weather information (e.g., London, New York, Tokyo, etc.).
Example:
./weather London
The CLI Weather App was developed with the help of the following resources:
- Weather API
- Go
- color - A Go package to use colors while printing text to console
- viper - Go configuration management with support for 12-factor applications.
Contributions to this project are welcome. If you find any bugs or have additional features to suggest, please open an issue or submit a pull request.
Thank you for using the CLI Weather App!