https://github.com/yassinouk/go_wheater
This CLI app is fetching data from a weather API and displaying it in the terminal with colored output.
https://github.com/yassinouk/go_wheater
api-client cli cli-app golang rest-api terminal-app
Last synced: 6 months ago
JSON representation
This CLI app is fetching data from a weather API and displaying it in the terminal with colored output.
- Host: GitHub
- URL: https://github.com/yassinouk/go_wheater
- Owner: yassinouk
- Created: 2023-07-30T22:36:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T19:59:20.000Z (over 2 years ago)
- Last Synced: 2024-03-14T22:07:15.692Z (over 2 years ago)
- Topics: api-client, cli, cli-app, golang, rest-api, terminal-app
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather CLI App in Golang
## Project Information
- Project: weather-cli
- Created Date: 30/07/2023
## Introduction
This Golang CLI application fetches weather data from a weather API and presents it in the terminal with color-coded output based on the chance of rain. It uses the [Weather API](https://www.weatherapi.com/) to retrieve the current weather conditions and the hourly forecast for a specified city.
## Usage
To use the app, you need to have Golang installed on your machine. If you don't have Golang installed, you can download it from the [official Golang website](https://go.dev/).
1. Clone the repository to your local machine:
```bash
git clone https://github.com/yassinouk/go_wheater.git
```
2. Navigate to the project directory:
```bash
cd go_weather
```
3. In the main.go file change the variable city with your desired city:
4. Build the app:
```bash
go build -o go_weather
```
5. Run the app:
```bash
./go_weather
```