Be more productive than ever with this simple project that uses the spring dev tools and react hot loader.
Everything from backend to frontend will automatically reload.
See my article for an in-depth explanation.
The spring boot project is the gradle top-level project. The frontend sub-project contains the javascript code.
Installing the npm dependencies:
./gradlew frontend:npmInstallNow you can simply launch the spring boot application with the dev profile
with the flag --spring.profiles.active=dev
This command will generate an optimized bundle and include it in the jar.
./gradlew clean assembleYou can then launch it with:
java -jar build/libs/boot-react-0.0.1-SNAPSHOT.jarWith spring boot 1.3, you can install the application as a linux service