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.
- maven packages spark framework java application
- maven (with frontend-maven-plugin) downloads node/npm , builds vue frontend
- 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.
- everything in 1 repository. ideally i'd able have separate repo each layer of project (one java, 1 vue)
- development workflow isn't ideal. if want test java part of app, still spend time compiling frontend (vue)
- 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
Post a Comment