This project holds:
- a server for the JSweet Ionic client example using a JAX-RS (Jersey) web api
- an example of a web interface written in JSweet + Knockout
The following steps require administrator rights
- Ensure maven command line (mvn) is in PATH by typing
mvn -version
, if command not found, download apache maven 3.3.x and include its bin folder in PATH, then try again - Ensure node packet manager (npm) is in PATH by typing
npm -v
, if command not found, download and install NodeJS, then try again
Compile JSweet client code using
mvn clean generate-sources -P client
JavaScript files are generated in src/main/webapp/js/app
, and candies are generated in src/main/webapp/js/candies
Deploy on a glassfish server and browse context root. Persistence unit configuration is not mandatory since web api use mocks. It is just a template :)
On Glassfish server 4.1.1, some errors could occur on startup with Jersey 2 (see SO thread) In order to solve it, download latest EclipseLink and update glassfish/module/...moxy jar