This project is a starting platform for a Spring project with Vue as a frontend tool that pulls data from an external API and caches the result. The project includes a responsive Bootstrap template.
🏠 Homepage
tbd
- java 1.17
- maven (or use mvnw)
mvn install
You can set the following properties in the file src/main/resources/application.properties
:
NAME | required | Comment |
---|---|---|
config.apikey |
yes | You can get your own free OpenWeatherApi key on this website: https://home.openweathermap.org/users/sign_up |
Make your own copy of the application.properties
file and add the keys.
cd src/main/resources/
cp ./application.properties_default ./application.properties
Learn more about the OpenWeatherMap API: https://openweathermap.org/api
You can test the backend and the connection to the openweather api with
mvn test
First, compile and pack the application:
mvn clean package
And run the development server:
java -jar target/spring-api-request-0.0.1-SNAPSHOT.jar
Open http://localhost:8080 with your browser to see the result.