Vue.js spring boot starter project
- Spring Boot
- Vue.js
- Hot module replacement (from webpack dev server and from java)
- vue-router for routing (working well with spring router)
- vue-resources for data fetching
- development and production profiles
- fully automated maven workflow
- bootstrap 4 integration
- font-awesome
- less-css support
- sass support
- and will be more...
- added Simple survey as Vue.js example
- added Vuex (It's like flux)
- refactor counter example to Vuex
- some other refactorings
- added realtime chat example (SSE)
# compile and start in production mode
mvn spring-boot:run
server will start on http://localhost:8080/
# compile and start in development mode
mvn spring-boot:run -Dspring.profiles.active=dev
# start webpack development server for HMR
npm run dev
java server will start on http://localhost:8080/ webpack server will start on http://localhost:3000/
Hot module replacement will be available from both servers
##Running tests
# run karma tests
npm run tests
# run java and karma
mvn test
.
├ build # webpack build configuration
├ .mvn # maven wrapper directory
├ node # maven will install node here
├ node_modules # node modules
├ target # compiled java sources
├ src # sources
│ ├ main
│ │ ├ java # java sources
│ │ ├ vuejs # javascript sources
│ │ └ resources # resources
│ │ ├ static # static resources
│ │ │ ├ css # styles
│ │ │ ├ images # images
│ │ │ ├ dist # generated javascript goes here
│ │ │ └ index.html # development index.html
│ │ └ application.properties # spring boot configuration properties
│ └ test # test sources
│ ├ java # java tests
│ └ vuejs # vue.js tests
├ .babelrc # babel configuration
├ .eslintrc # eslint configuration
├ .gitignore # gitignore
├ package.json # node configuration
├ pom.xml # maven configuration
├ mvnw # maven linux wrapper
├ mvnw.cmd # maven windows wrapper
├ npm # local npm linux wrapper
├ npm.cmd # local npm windows wrapper
└ README.md # this file