Simple weather forecast SpringBoot app using openweathermap API
- Zipkin server
- SpringBoot service using Java 12 for Weather Forecast using a random forecast generator if Open Weather API is not configured correctly
- Docker-Compose Orchestration
- Docker-compose
- Create a free account at https://home.openweathermap.org (otherwise a failover will generate random values)
Either
- resources/application.properties
- docker-compose.yml
- environment variable ${OPENWEATHER_APPID}
cd weather-forecast
docker-compose up -d
The API is simplistic: http://localhost:8080/{country_code}/{city}
curl -X GET http://localhost:8080/uk/london
Open your favorite browser and go to http://localhost:9411/zipkin to see the data generated by your request.
- Extraction of the Failover service in a separate micro-service
- Kubernetes Orchestration