repositorypackage
0.0.0-20241129223159-c00816195afc
Repository: https://github.com/4lexrossi/weather-api.git
Documentation: pkg.go.dev
# README
Weather API
Este é um sistema em Go que recebe um CEP, consulta o clima na cidade associada e retorna a temperatura em Celsius, Fahrenheit e Kelvin.
Como rodar a aplicação
- Clone o repositório.
- Defina a variável de ambiente
WEATHER_API_KEY
com sua chave da API WeatherAPI. - Execute os comandos:
Rodar localmente
go run main.go
# Ou, se preferir, use o Docker
docker build -t weather-api .
docker run -p 8080:8080 weather-api
Como acessar live
- https://weather-api-jlasj72npq-uc.a.run.app/weather?cep=<Cep no formato: 00000-00>