node.js - Better way to create a web application with Java and Vue -


i'm starting web development little more. use spark framework along vue few apps i've made. while works it's not ideal.

the project built maven (and npm vue) , build process looks this.

  1. maven packages spark framework java application
  2. maven (with frontend-maven-plugin) downloads node/npm , builds vue frontend
  3. maven copies compiled resources jar static assets

so filesystem looks this

/src/main/java (spark framework)

/src/main/resources (vue)

this leads couple of annoyances.

  1. everything in 1 repository. ideally i'd able have separate repo each layer of project (one java, 1 vue)
  2. development workflow isn't ideal. if want test java part of app, still spend time compiling frontend (vue)
  3. a minor issue, while working in ide, i'm dealing nested folders. anytime want edit frontend, folder structure looks /src/main/resources/project-vue/

here's 1 of projects uses model

so question is: what's better way structure application?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -