this application to play with Spring Boot and ES6.
The idea is to run:
- a backend serving shopping lists and endpoints to keep you own custom lists
- a frontend serving webpages ES6 javascript based.
It is using frontend-maven-plugin to translate ES6 into ES5:
- by installing node.js and npm
- running Webpack
- putting all your javascripts in a jar available for your backend.
It is using spring-boot to run the backend.
In shoppinglist-package directory: mvn clean install
In shoppinglist-be: java -jar target/shoppinglist-be-1.0-SNAPSHOT.jar
In a browser,
- if ES6 javascript is successfully server by your Spring MVC then you will read 'Hello World!' from https://localhost:8080/index.html
- if your backend is serving the default shopping list then you'll get it in JSON format from https://localhost:8080/proposedItems
Setting up the project for ES6 with Webpack is done using well documented article on https://justincalleja.com/2016/04/17/serving-a-webpack-bundle-in-spring-boot