The present application is a web application that retrieves the weather information from https://openweathermap.org
The search is done by city by means of a simple html form with the city name as input.
-1.0.0
Last Modification Date: 5/29/2019 by Erick García Ramírez
- Maven
- Spring
- SpringBoot
You need to have installed:
- Java 1.8
- Maven 3.3
- IDE (STS, Eclipse, Intellij)
- lombok installed on IDE
Instructions:
execute the following command on your cmd or terminal prior to launch the application on your local machine:
$ mvn clean installthen execute the following to run your application:
$ mvn spring boot:runyou can also execute the jar directly in case that you were unable to execute the previous command:
$ mvn java -jar target/weather-search-0.0.1-SNAPSHOT.jarOr from STS right click on the project -> Run As -> Spring Boot App for Eclipse right click on the project -> Run As -> Java Application
To verify the quality code reports in terms of checkstyle, bugs, PMD and coverage. Execute the following:
$ mvn clean install site -Pdevelopment_reportingAfter the execution enter to the target folder and open the index.html page. That includes the reports mentioned as 'Project Reports'
Open your browser and search for http://localhost:8080/weather. A simple form will be displayed with an input box so you can type the city of your preference.
Type any city you wish. Click Submit and the weather information will be displayed.