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
Build
ormvn clean package
which will install node, dependencies and builds a fully deployable application. - Run the run configuration
Start Backend
or launch theBootstrap
class to start up the backend - Run the run configuration
Start Frontend
ornpm run dev
which 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.