You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/12/31 12:37:09 UTC
svn commit: r1648677 - in /isis/site/trunk/content/intro/tutorials:
resources/petclinic/domain-model.png step-by-step-petclinic.md
Author: danhaywood
Date: Wed Dec 31 11:37:09 2014
New Revision: 1648677
URL: http://svn.apache.org/r1648677
Log:
petclinic tutorial
Modified:
isis/site/trunk/content/intro/tutorials/resources/petclinic/domain-model.png
isis/site/trunk/content/intro/tutorials/step-by-step-petclinic.md
Modified: isis/site/trunk/content/intro/tutorials/resources/petclinic/domain-model.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/tutorials/resources/petclinic/domain-model.png?rev=1648677&r1=1648676&r2=1648677&view=diff
==============================================================================
Binary files - no diff available.
Modified: isis/site/trunk/content/intro/tutorials/step-by-step-petclinic.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/tutorials/step-by-step-petclinic.md?rev=1648677&r1=1648676&r2=1648677&view=diff
==============================================================================
--- isis/site/trunk/content/intro/tutorials/step-by-step-petclinic.md (original)
+++ isis/site/trunk/content/intro/tutorials/step-by-step-petclinic.md Wed Dec 31 11:37:09 2014
@@ -12,8 +12,9 @@ This tutorial builds a simple petclinic
The above diagram was built using [yuml.me](http://yuml.me]); the DSL that defines this diagram is:
<pre>
-[Visit|-checkIn:DateTime;-checkout:DateTime;-diagnosis:String|+checkin();+checkout();+addNote(){bg:pink}]->[Pet|-name:String;-species:PetSpecies{bg:green}]
+[Pet|-name:String;-species:PetSpecies{bg:green}]<-0..*[Visit|-checkIn:DateTime;-checkout:DateTime;-diagnosis:String|+checkin();+checkout();+addNote(){bg:pink}]
[Owner|-firstName:String;-lastName:String{bg:green}]<0..1-0..*>[Pet]
+[PetSpecies|-name:String{bg:blue}]<-[Pet]
</pre>
Either follow along or check out the tags from the corresponding [github repo](https://github.com/danhaywood/isis-app-petclinic).
@@ -47,10 +48,12 @@ This will generate the app in a `petclin
mv petclinic/* .
rmdir petclinic
-
-> git checkout [249abe476797438d83faa12ff88365da2c362451](https://github.com/danhaywood/isis-app-petclinic/commit/249abe476797438d83faa12ff88365da2c362451)
+
+{note
+git checkout [249abe476797438d83faa12ff88365da2c362451](https://github.com/danhaywood/isis-app-petclinic/commit/249abe476797438d83faa12ff88365da2c362451)
+}
## Build and run
@@ -79,10 +82,25 @@ This will accomplish the same thing, tho
Navigate to the Wicket UI (eg http://localhost:8080/wicket), and login (sven/pass).
-Once at the home page:
+<img src="resources/petclinic/010-01-login-page.png"></img>
-* install fixtures
-* list all objects
+The home page should be shown:
+
+<img src="resources/petclinic/010-02-home-page.png"></img>
+
+Install the fixtures (example test data) using the `Prototyping` menu:
+
+<img src="resources/petclinic/010-03-prototyping-menu.png"></img>
+
+List all objects using the `Simple Objects` menu:
+
+<img src="resources/petclinic/010-04-simpleobjects.png"></img>
+
+To return the objects created:
+
+<img src="resources/petclinic/010-05-simpleobject-list.png"></img>
+
+Experiment some more, to:
* create a new object
* list all objects