Weather Cep API
This API is a simple weather API that returns the temperature of a city by receiving a CEP (Brazilian Zip Code) as a parameter.
Usage
- Run locally with docker-compose
docker compose up --build
- Add the CEP as a parameter in the URL and the API will return the temperature of the city.
curl "http://localhost:8080/?cep=10010-000"
Using in production
Run cp .env.sample .env
and fill the environment variables with your own values or
create a .env
file with an environment variable called WEATHER_API_KEY
with your Weather API key (https://www.weatherapi.com/)
- To run the docker compose production file:
docker compose -f docker-compose.prod.yml up
Demo in Google Cloud Run