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
- Host: GitHub
- URL: https://github.com/btarg/vuejava
- Owner: btarg
- Created: 2023-12-02T17:17:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T04:24:46.000Z (over 2 years ago)
- Last Synced: 2025-03-10T18:37:26.522Z (over 1 year ago)
- Topics: api, gradle, idea, java, javalin, nodejs, npm, vite, vue, vuejs
- Language: CSS
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`