-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
136 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,67 @@ | ||
# GWeather | ||
# GWeather - A Golang Weather CLI | ||
|
||
[Coming Soon] | ||
GWeather is a command-line interface (CLI) written in Golang that provides weather forecasts using the WeatherAPI from RapidAPI. | ||
|
||
## Installation | ||
|
||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/zoelabbb/Gweather.git | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
```bash | ||
cd Gweather | ||
``` | ||
|
||
3. Create a `.env` file with your RapidAPI key and host: | ||
```env | ||
RAPID_API_KEY=your-rapidapi-key | ||
RAPID_API_HOST=weatherapi-com.p.rapidapi.com | ||
``` | ||
|
||
4. Build the application: | ||
```bash | ||
go build -o Gweather | ||
``` | ||
|
||
5. Move the executable to your path: | ||
```bash | ||
mv Gweather /usr/local/bin | ||
``` | ||
|
||
6. Run the application: | ||
```bash | ||
Gweather {city} | ||
``` | ||
|
||
## Usage | ||
|
||
Run the application with an optional city parameter to get the weather forecast. If no city is provided, it defaults to **"Denpasar"**. | ||
|
||
```bash | ||
Gweather Jakarta | ||
``` | ||
|
||
## Dependencies | ||
|
||
- [github.com/fatih/color](https://pkg.go.dev/github.com/fatih/color) | ||
- [github.com/joho/godotenv](https://pkg.go.dev/github.com/joho/godotenv) | ||
|
||
## Configuration | ||
|
||
Configure the application by setting your RapidAPI key and host in the `.env` file. | ||
|
||
## Contributing | ||
|
||
1. Fork the repository (https://github.com/zoelabbb/Gweather/fork) | ||
2. Create a new branch (`git checkout -b feature-new`) | ||
3. Commit your changes (`git commit -am 'Add new feature'`) | ||
4. Push to the branch (`git push origin feature-new`) | ||
5. Create a new Pull Request | ||
|
||
## Contact | ||
|
||
For questions or suggestions, feel free to contact the maintainers: | ||
|
||
- [Ryu as a Dev](mailto:[email protected]) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= | ||
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= | ||
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= | ||
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= | ||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= | ||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= | ||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= | ||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= | ||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= | ||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= | ||
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= |
This file contains 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