Skip to content

Starting platform for a Spring project with Vue as a frontend tool that pulls data from an external API and caches the result. (includes responsive template with Bootstrap)

License

Notifications You must be signed in to change notification settings

pyrrolizin/spring-api-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Spring-api-request 👋

Version License: MIT

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.

✨ Demo (OpenWeatherMap-Api - Current weather in Stuttgart, Germany)

tbd

screenshot of the demo application

Prerequisit

  • java 1.17
  • maven (or use mvnw)

Installation

mvn install

Application properties

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

Testing

You can test the backend and the connection to the openweather api with

mvn test

Getting Started

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.

About

Starting platform for a Spring project with Vue as a frontend tool that pulls data from an external API and caches the result. (includes responsive template with Bootstrap)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published