-
Notifications
You must be signed in to change notification settings - Fork 4
Building and Running the Example
gsteinacker edited this page Oct 20, 2012
·
4 revisions
- Download and unpack the project
- Install Gradle
Simply run gradle build
- Using
gradle jettyRun
, you can run the example project in a jetty server. - Open the example in a browser: http://localhost:8080/jsonhome-example/storefront
- Open the generated json-home document using a REST client: http://localhost:8080/jsonhome-example/json-home with Request Header Accept: application/json
The Json-Home project contains three modules:
- jsonhome-core: a library containing a simple domain model, representing the resources of a web application.
- jsonhome-generator: base classes used to build json-home generators.
- jsonhome-spring: the Spring controllers used to build a Spring-based web application. Contains a Spring-MVC implementation of a JsonHomeGenerator.
- jsonhome-example: a simple Spring-based web application, showing the usage of jsonhome-core and jsonhome-spring.