-
This program works getting temperature in Celsius, Fahrenheit and Kelvin from a zipcode, return in json format.
-
The following the format returned by the API: {"tempC":26,"tempF":78.8,"tempK":299.1}
-
Where tempc is temperature in Celsius, tempF is temperature in Fahrenheit and tempK is temperature in Kelvin.
-
git clone project:
git clone git@github.com:TiagoSilvaLourenco/temperature-system-zipcode-go.git -
In development mode run
docker compose upto run the program in the port 8080 -
For run the program in production run command:
docker compose -f docker-compose.prod.yml up -
In local machine run
go testto test the program -
To test the program online, go to: https://temperature-system-goexpert-n5ko4ubijq-uc.a.run.app/{cep}}
-
Where {cep} is the zipcode number you want to get the temperature scales, eg.: https://temperature-system-goexpert-n5ko4ubijq-uc.a.run.app/01001000