This application is used to get current weather data from OpenWeather and store it in the database. Application is implemented in fully asynchronous way using Spring WebFlux and Spring Data R2DBC.
Application uses Java 14 and Maven 3.6.3 which should be installed on system. Current application configuration expects PostgreSQL database dojo
to be available at localhost:5432
with user
postgres
having password postgres
, but all this can be changed in application.yml
configuration file.
Application can be started using following command:
mvn spring-boot:run -Dspring-boot.run.arguments=--weather.apiKey=YOUR_API_KEY
Another option is to add weather.apiKey
to application.yml
configuration file, in which case running application is much simpler:
mvn spring-boot:run
It's possible to generate the API key going to the OpenWeather Sign up page.