Skip to content
Spring boot application using webpack and react
JavaScript Java Batchfile Shell CSS HTML
Branch: master
Clone or download
Latest commit 4f31b25 Mar 16, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main Convert require css file into an import statement Apr 20, 2016
.editorconfig
.gitattributes Initial commit Apr 12, 2016
.gitignore Updated gitignore file Apr 12, 2016
LICENSE Initial commit Apr 11, 2016
README.md
build.gradle
gradlew
gradlew.bat Initial commit Apr 12, 2016
npm Initial commit Apr 12, 2016
npm.cmd
package.json Add babel-core and hardcode version numbers Jan 18, 2017
watchJS.cmd
watchJS.sh
webpack.config.js Initial commit Apr 12, 2016

README.md

webpack-gradle

This project is a sample Spring boot application using Webpack and React. The goal of this application is to show a simple project using React as a Javascript framework with Spring Boot. The JS framework can be anything though.

The gradle file is setup so that webpack is always run before bootRun. There are also utility watchJS script files that can be run on *nix/Windows which will watch your JS files and recreate a bundle. You'll need to refresh your page to see the changes though but you will not need to restart your Spring Boot app.

For a better step by step build up on this project, check out the blog post associated with this project. If you're a Java developer new to the JS world, then it's worth a read as I go over npm and package.json and how they are used.

The watch scripts can be used after initializing the project. Type ./gradelw bootRun (or run via gralde task in IDE) then you can use the watch script. Running gralelw bootRun or gradlew build will initialize the node_modules directory.

You can’t perform that action at this time.