Giter VIP home page Giter VIP logo

spring-webpack's Introduction

Webpack (Vue.js) and Spring Boot Sample Project

  • Not SPA - multilple HTML templates
  • Context path support
  • A Gradle build script for both server-side and client-side project with gradle-node-plugin

Server Side

  • Based on a Spring Initializr template
  • Thymeleaf templates for server-side variable injection
  • Locally-runnable HTMLs (after building the front project)
    • ./gradlew prepare buildFront to build the front project
  • Eclipse (and STS) support: ./gradlew prepare

Client Side

  • Based on the Vue webpack template
  • Little improved dev server support: npm run dev
  • Server-side templates are generated from a EJS template and JS variables by HtmlWebpackPlugin
  • (Only 'typescript' branch) TypeScript and vue-class-component
  • Code Splitting (chunks)
  • Bootstrap 3 (theme: Honoka)

Requirements

  • Java 8 or later
  • npm
  • Yarn

Run Sample App

  1. Enter following commands
git clone [email protected]:kuinaein/spring-webpack.git
cd spring-webpack
./gradlew flashRun
  1. Wait for build and app initialization
  2. Open http://localhost:8080/actual-ctx/foo/create

License

CC0 1.0 Universal (except vue-webpack-boilerplate originated code)

https://creativecommons.org/publicdomain/zero/1.0/

spring-webpack's People

Contributors

kuinaein avatar

Watchers

James Cloos avatar  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.