{"id":31774187,"url":"https://github.com/devzgabriel/goexpert-lab-deploy","last_synced_at":"2025-10-10T04:49:23.697Z","repository":{"id":298201062,"uuid":"999183272","full_name":"devzgabriel/goexpert-lab-deploy","owner":"devzgabriel","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-09T22:48:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-09T23:31:57.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devzgabriel.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-09T21:41:29.000Z","updated_at":"2025-06-09T22:48:22.000Z","dependencies_parsed_at":"2025-06-09T23:42:02.714Z","dependency_job_id":null,"html_url":"https://github.com/devzgabriel/goexpert-lab-deploy","commit_stats":null,"previous_names":["devzgabriel/goexpert-lab-deploy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devzgabriel/goexpert-lab-deploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devzgabriel%2Fgoexpert-lab-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devzgabriel%2Fgoexpert-lab-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devzgabriel%2Fgoexpert-lab-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devzgabriel%2Fgoexpert-lab-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devzgabriel","download_url":"https://codeload.github.com/devzgabriel/goexpert-lab-deploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devzgabriel%2Fgoexpert-lab-deploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002655,"owners_count":26083442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-10T04:49:20.404Z","updated_at":"2025-10-10T04:49:23.690Z","avatar_url":"https://github.com/devzgabriel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Desafio Deploy GoExpert Lab\n\n## Como executar o projeto\nExecute o código abaixo para iniciar o projeto em Go com Docker Compose e acesse o serviço na URL `http://localhost:8080/execute?cep=04475030`.\n```bash\ndocker compose up goexpert-lab-deploy-dev\n```\n\n## Deploy no Google Cloud Run\nURL: \n```bash\nhttps://goexpert-lab-deploy-m3hc6hg4ra-uc.a.run.app/execute?cep=04475030\n```\n\n\n## Descrição\n\nObjetivo: Desenvolver um sistema em Go que receba um CEP, identifica a cidade e retorna o clima atual (temperatura em graus celsius, fahrenheit e kelvin). Esse sistema deverá ser publicado no Google Cloud Run.\n\nRequisitos:\n\nO sistema deve receber um CEP válido de 8 digitos\nO sistema deve realizar a pesquisa do CEP e encontrar o nome da localização, a partir disso, deverá retornar as temperaturas e formata-lás em: Celsius, Fahrenheit, Kelvin.\nO sistema deve responder adequadamente nos seguintes cenários:\nEm caso de sucesso:\nCódigo HTTP: 200\nResponse Body: { \"temp_C\": 28.5, \"temp_F\": 28.5, \"temp_K\": 28.5 }\nEm caso de falha, caso o CEP não seja válido (com formato correto):\nCódigo HTTP: 422\nMensagem: invalid zipcode\n​​​Em caso de falha, caso o CEP não seja encontrado:\nCódigo HTTP: 404\nMensagem: can not find zipcode\nDeverá ser realizado o deploy no Google Cloud Run.\nDicas:\n\nUtilize a API viaCEP (ou similar) para encontrar a localização que deseja consultar a temperatura: https://viacep.com.br/\nUtilize a API WeatherAPI (ou similar) para consultar as temperaturas desejadas: https://www.weatherapi.com/\nPara realizar a conversão de Celsius para Fahrenheit, utilize a seguinte fórmula: F = C * 1,8 + 32\nPara realizar a conversão de Celsius para Kelvin, utilize a seguinte fórmula: K = C + 273\nSendo F = Fahrenheit\nSendo C = Celsius\nSendo K = Kelvin\nEntrega:\n\nO código-fonte completo da implementação.\nTestes automatizados demonstrando o funcionamento.\nUtilize docker/docker-compose para que possamos realizar os testes de sua aplicação.\nDeploy realizado no Google Cloud Run (free tier) e endereço ativo para ser acessado.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevzgabriel%2Fgoexpert-lab-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevzgabriel%2Fgoexpert-lab-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevzgabriel%2Fgoexpert-lab-deploy/lists"}