• Stars
    star
    226
  • Rank 176,514 (Top 4 %)
  • Language
    CSS
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vue.js spring-boot starter (DEPRECATED)

vuejs-java-starter

Vue.js spring boot starter project

Features:

  • 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...

Changelog

0.1.1 (2016-01-17)

  • added Simple survey as Vue.js example

0.1.0 (2016-01-15)

  • added Vuex (It's like flux)
  • refactor counter example to Vuex
  • some other refactorings

0.0.9 (2016-01-14)

  • added realtime chat example (SSE)

show full changelog

Run in production mode

# compile and start in production mode
 mvn spring-boot:run

server will start on http://localhost:8080/

Run in development mode

# 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

Directory structure

.
β”œ 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