Eclipse/Maven project for OCRD Application Server REST API & UIF
- JDK8 or better
- Maven 3
- Eclipse 4.X or better (installed maven plugin & e.g. Spring STS)
- clone repo to your local machine
- Open Eclipse
- File->Import->Maven->existing Maven project
- Run from new projects's context menu Maven->Update project
- New Java code from RAML is generated in /target/generated-sources/raml-jaxrs
- run eclipse project on server:
RunLocalJetty.java
- Point your browser to http://localhost:8181
/
shows html & js pages which reside insrc/webapp
/api/
points to all api endpoints
- install raml2html module (https://github.com/raml2html/raml2html)
- to generate use: raml2html api.raml > api.html
- sources in webapp-src folder
all source files which are needed to build the webapp (e.g. backbone js code & HTML markup code)
use build scripts to create a build. The build-script shall sync the build to src/webapp