Categorygithub.com/4lexRossi/weather-api
repositorypackage
0.0.0-20241129223159-c00816195afc
Repository: https://github.com/4lexrossi/weather-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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

  1. Clone o repositório.
  2. Defina a variável de ambiente WEATHER_API_KEY com sua chave da API WeatherAPI.
  3. 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

  1. https://weather-api-jlasj72npq-uc.a.run.app/weather?cep=<Cep no formato: 00000-00>