Skip to content

janesenaj42/templates-javafx-react

Repository files navigation

templates-javafx-react

This is a sample JavaFX+react frontend project. The react application is meant to appear in the JavaFX as an iframe.

Quick Start

Run gradlew run to start the frontend. The application should appear in a separate window.

Deployment

Run gradlew build to:

  1. Install required npm packages (npmInstall).
  2. Build the React application (npmBuild).
  3. Copy the React output to the JavaFX resource directory.
  4. Build the JavaFX application to produce a jar executable in build/libs.

Note

  • Incremental Build: If no changes are detected in the React working directory, Gradle skips the npm tasks (npmInstall and npmBuild).
  • Automation: Ensures the JavaFX project always use the latest React application during the build process.

Directory Details

  • React Working Directory: Defined in the node configuration of build.gradle.
  • JavaFX Resource Path: Defined in the copyReactBuild task in build.gradle. Currently configured to src/main/resources/webapp.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published