A scaffold for you, to start your new fullstack project with. It uses JavaWebStack and Vite (Vue 3.X) to create a fullstack application which is comfortable to use while developing and also easy to deploy afterwards.
- Backend using JavaWebStack
- Frontend using VueJS
- Hot Reload of Frontend while developing
- No need for special proxy configurations, because the Frontend runs on the same domain
- A single jar to deploy
- Create your new project with this template
- Run the run configuration
Buildormvn clean packagewhich will install node, dependencies and builds a fully deployable application. - Run the run configuration
Start Backendor launch theBootstrapclass to start up the backend - Run the run configuration
Start Frontendornpm run devwhich will watch for all changes in the Vue sources
For the best experience I recommend IntelliJ IDEA Ultimate, which has excellent support for Java, JavaScript and Vue
Just generate a new project using Vite in the src/main/javascript/ directory using your preffered Frontend Framework and copy over the package.json scripts and vite.config.js configuration.