This is the template which create a mock of the Web application only using JVM language tool chain. RubyGems and bundler, npm and Grunt/gulp, bower, etc... are not required.
It's using the technology stack below.
- Groovy Markup Template (Besides, it can also be used handlebars, thymeleaf)
- Sass (also you can use Less)
- CoffeeScript
- WebJars (you can add other assets/library you need also)
- jQuery
- lodash
- Bootstrap Sass
- Ratpack
- Gradle (by using the continuous build of Gradle v2.5 later, and the file changes watching.)
- livereload-jvm (you can auto reload the browser)
- gaffer (Foreman on JVM, you can Procfile-based process management)
- only Java8
$ git clone https://github.com/yukung/mockup-boilerplate-jvm.git
$ cd mockup-boilerplate-jvm/lib/gaffer-0.0.1
$ bin/gaffer start -f ../../Procfile
Looking for you want to use library from webjars, please add to the dependency of build.gradle.
dependencies {
compile 'org.webjars.npm:angular:1.4.7'
}
And append the directive in order to build in the asset pipeline. File path describes the path that starts from webjars/
.
#= require webjars/angular/1.4.7/angular
#= require_self
#= require_tree .
Combine the file using the @import
notation in the case of Sass.
@import "webjars/bootstrap-sass/3.3.1/stylesheets/bootstrap"
In the case of naked CSS, it is as a normal asset pipeline may be describing the directive in the comments.
/*
*= require "webjars/bootstrap/3.3.1/css/bootstrap"
*= require_self
*= require_tree .
*/