项目作者: milpol

项目描述 :
Scaffold project build with Dropwizard + ReactJS/JSX with complete, Maven based, npm-free building process
高级语言: Java
项目地址: git://github.com/milpol/onefold.git
创建时间: 2019-01-29T14:30:57Z
项目社区:https://github.com/milpol/onefold

开源协议:

下载


Onefold

Onefold is the skeleton of a complete, production-ready, Java web application, build with modern JavaScript
libraries (ReactJS) and bundled by Maven only.
It does not do much, simply displays welcome page, asks backend for current user (XHR) and updates view with obtained
value.
The reason behind this project is to provide independent from JavaScript ecosystem, dependencies building mechanism
based on pure Java.

Read more on @milosz.polak/self-contained-rich-web-application-jars-b243d28980cd">Medium.

Building & Running

To run the project from IDE, execute OnefoldApplication class with arguments server files/configuration.yml.
(If you are familiar with Dropwizard project this should be rather straightforward, if
not, I strongly recommend to start with 101 tutorials before diving here).

To build executable JAR file, run maven package phase with fold profile:

mvn clean package -P fold

When done, application can be executed from Java (outside IDE):

java -jar target/onefold-1.0-SNAPSHOT.jar server files/configuration.yml

Application is available at: http://localhost:8080