cloudrun_go

module
v0.0.0-...-e870ed9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT

README

O que é isso?

Este é um serviço recebe um CEP brasileiro e retorna temperaturas (celsius, fahrenheit e kelvin)

Como executá-lo?

Execute com docker compose:

docker compose up

Execute a solicitação atraves do endpoint https://server-weather-ebe2gkm2bq-uc.a.run.app/?cep=01153000 utilizando o Verbo Get

Ex:

curl --request GET --url 'https://server-weather-ebe2gkm2bq-uc.a.run.app/?cep=01153000'

Na produção usar o enviroment

No arquivo .env e adicione sua chave de API Weather (https://www.weatherapi.com/).

Google Cloud Run

Este serviço está hospedado no serveless do Google cloud run e estará disponível online por tempo limitado. Utlizando este endpoint https://server-weather-ebe2gkm2bq-uc.a.run.app/

Directories

Path Synopsis
cmd
server command
internal
services/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
usecases/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL