VueJS with Vite + Javalin + Java 21 + Gradle Kotlin
This example app has a text box input with a button which will send the input back to a Java function which will then echo the response back to the Vue.js portion of the app.
It uses Javalin's ability to parse an object into a Java class: see frontend/src/scripts/objects/MyCustomObject.js
for the JS representation of the Java class io.github.btarg.backend.objects.MyCustomObject
This project requires Node.js to be installed.
From the backend
directory, run
./gradlew build
Your jar will be in build/libs