Introducing a Spring Boot-powered REST web service backend, providing data to the JS/Vue frontend
Run a Spring Boot backend REST service (Java, Spring, json)
Load json data files into backend service
Expose API to simplify web development, moving code from JS to backend (Java, Mockito, TDD)
Connect Vue/JS frontend to REST services
Visualize the data using Vue/JS as previously
You can
Check out the code at github.com/boaworm/TrailcamWeb-Spring
End result: Quick and easy way to move business logic from the presentation layer/JavaScript into the backend using Java. Spring Boot provides an excellent framework for creating these REST services.
Easily hooked up and developed using IntelliJ IDEA, making TDD and debugging trivial.
This architecture would be much more appropriate for larger-scale deployment, especially where data security and data exposure needs to be managed (when all data may not be public and small in size).
Â