Giter Site home page Giter Site logo

mingyu-lee / vuejs-java-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kucharzyk/vuejs-java-starter

0.0 1.0 0.0 134 KB

Vue.js spring-boot starter (DEPRECATED)

HTML 1.62% JavaScript 14.88% Shell 0.10% Batchfile 0.11% Java 14.36% CSS 40.29% Vue 28.64%

vuejs-java-starter's Introduction

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

vuejs-java-starter's People

Contributors

kucharzyk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.