Skip to content

Base project structure for Vue/SpringBoot war deployments

Notifications You must be signed in to change notification settings

geozak/SpringVueBase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This is a base project to get started using Vue with Spring Boot Web.

This project is designed to package the compiled code into a .war for deployment into web containers (default: Tomcat).

Node npm & Vue CLI

You will need npm and the Vue CLI intalled. Full Instructions

npm

Goto the Node.js Site to install.

Vue CLI

npm install -g @vue/cli

Building and running

Here are some commands to get build and run the application

Development

These sets of commands will continously build & serve the client and server as files change. You will need 2 terminals open because the watch commands are interactive

Terminal 1 - Building the client app

cd client
npm run build-dev

Terminal 2 - Building and serving server w/SPA hosting

cd server
mvn spring-boot:run -Dspring-boot.run.profiles=development

Alternative

These can be executed with the Vue UI and your IDE if desired; just adjust the run configuration to match.

About

Base project structure for Vue/SpringBoot war deployments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages