An open API service indexing awesome lists of open source software.

https://github.com/btarg/vuejava

VueJS (Vite) app using Javalin as a backend with Gradle
https://github.com/btarg/vuejava

api gradle idea java javalin nodejs npm vite vue vuejs

Last synced: 3 months ago
JSON representation

VueJS (Vite) app using Javalin as a backend with Gradle

Awesome Lists containing this project

README

          

# vuejava
[VueJS](https://vuejs.org/) with [Vite](https://vitejs.dev/) + [Javalin](https://javalin.io/) + 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](https://github.com/btarg/vuejava/blob/main/backend/src/main/java/io/github/btarg/backend/controllers/MyController.java#L7) which will then echo the response back to the [Vue.js portion of the app](https://github.com/btarg/vuejava/blob/main/backend/frontend/src/App.vue).

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`
# Build and run
This project requires Node.js to be installed.
From the `backend` directory, run
```
./gradlew build
```
Your jar will be in `build/libs`