Website and Rest app bundled together using Webjars(Twitter Bootstrap and jQuery), jax-rs, Thorntail.
http://coenraets.org/blog/2011/12/restful-services-with-jquery-and-java-using-jax-rs-and-jersey/
Will detect the fractions you need for the project.
If you want build the app using Maven, you'll need:
- Java 1.8+
- Maven 3.0.5 or later
execute:
mvn clean install
will generate the .war application and also the fatjar (adding -thorntail) to the name of the app
to run the fatjar:
java -jar webjarRestWineCellar-thorntail.jar
Running Thorntail as a Java Application in Eclipse: (Use the same configuration for debugging inside of eclipse)
or
mvn thorntail:run in the root of the application where the pom file is located.
Will allow you to code changes in your .js and .html files in real time withouth redeploying the application.