Git Product home page Git Product logo

calculate-temperature's Introduction

calculate-temperature

Full Cycle Challenge

API: https://calculate-temperature-xyd2xuzs7a-uc.a.run.app/calculate-temperature?zipcode=SEU_CEP_AQUI Exemplo: https://calculate-temperature-xyd2xuzs7a-uc.a.run.app/calculate-temperature?zipcode=29055370

Retorno: { "temp_C": 28.7, "temp_F": 83.6, "temp_K": 301.7 }

Como rodar em dev:

  1. Inicie baixando o projeto na sua máquina;
  2. Instale as dependências;
  3. Faça a criação de uma conta na API https://www.weatherapi.com/;
  4. Na sua máquina faça uma cópia do arquivo .env.example e renomeie para .env;
  5. Na sua conta feita nesse site: https://www.weatherapi.com/, procute pela Api Key e cole a mesma na variável de ambiente WEATHER_API_KEY;
  6. Rode o docker compose utilizando o comando: docker compose up;
  7. Acesse o container e inicie a aplicação com o comando: go run main.go;
  8. Para rodar os testes basta usar o comando: go test ./...

calculate-temperature's People

Contributors

gabrielfmpinheiro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.