Skip to content

jsdir/boot-react

 
 

Repository files navigation

Spring boot and react hot loader

Build Status

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.

Developing

The spring boot project is the gradle top-level project. The frontend sub-project contains the javascript code.

Installing the npm dependencies:

./gradlew frontend:npmInstall

Now you can simply launch the spring boot application with the dev profile with the flag --spring.profiles.active=dev

Shipping

This command will generate an optimized bundle and include it in the jar.

./gradlew clean assemble

You can then launch it with:

java -jar build/libs/boot-react-0.0.1-SNAPSHOT.jar

With spring boot 1.3, you can install the application as a linux service

About

A starter application with spring boot and react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 57.3%
  • Java 33.2%
  • Groovy 8.2%
  • Other 1.3%