yusuiked / mockup-boilerplate-jvm

A Template project for frontend Web UI, only using JVM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mockup-boilerplate-jvm

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.

Requirement

  • only Java8

Usage

$ git clone https://github.com/yukung/mockup-boilerplate-jvm.git
$ cd mockup-boilerplate-jvm/lib/gaffer-0.0.1
$ bin/gaffer start -f ../../Procfile

Demo

When you want to use other JS libraries or assets?

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

JavaScript

assets/javascripts/application.coffee

#= require webjars/angular/1.4.7/angular
#= require_self
#= require_tree .

CSS

assets/stylesheets/application.sass

Combine the file using the @import notation in the case of Sass.

@import "webjars/bootstrap-sass/3.3.1/stylesheets/bootstrap"

assets/stylesheets/application.css

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 .
*/

About

A Template project for frontend Web UI, only using JVM.


Languages

Language:Shell 52.5%Language:Batchfile 26.3%Language:Groovy 12.3%Language:CoffeeScript 4.9%Language:CSS 4.1%