The Resources"

From Documentation
m (Redirected page to ZK Essentials)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
#REDIRECT [[ZK Essentials]]
 +
 
{{ZKEssentialsPageHeader}}
 
{{ZKEssentialsPageHeader}}
  
Line 4: Line 6:
  
 
*'''Store''' - which uses an in memory model defined by Java statements
 
*'''Store''' - which uses an in memory model defined by Java statements
*'''Store with database''' - which uses a persistent model driven by Hibernate. This is used for the last chapter of the book.
+
*'''Store with database''' - which uses a persistent model driven by Hibernate. This is used at the last chapter of the book.
  
If you require the ZK libraries please download ZK first:
+
If you require Maven & Git, please download and install them first:
  
#Go to ZK's [http://www.zkoss.org/download/zk.dsp download page] and choose a package to download.
+
#[http://maven.apache.org/download.html Maven]
#Unzip the package and place it in a folder
+
#[http://git-scm.com/download Git]
  
 
===Store===
 
===Store===
  
The store is available on our svn using the following command:
+
The store is available on github, you can retrieve it using the following commands:
 
 
svn checkout http://zkbooks.googlecode.com/svn/trunk/zkessentials/store/ zkessentials-store
 
  
This will put the store source code into a folder named zkessentials-store.
+
git clone git://github.com/zkbooks/ZK-Essentials.git zkessentials
 +
git checkout withoutdb
 +
  
 
If you prefer to set up the project in eclipse please refer to [[ZK Essentials/Working with the Sample Applications/Setting Up the Applications Using Eclipse/Store | here]].
 
If you prefer to set up the project in eclipse please refer to [[ZK Essentials/Working with the Sample Applications/Setting Up the Applications Using Eclipse/Store | here]].
  
===Store with database===
+
===Store with Database===
  
 
The store with database is also available on our svn. You can checkout the project using:
 
The store with database is also available on our svn. You can checkout the project using:
  
  svn checkout https://zkbooks.googlecode.com/svn/zkbooks/zkessentials/storewithdb zkessentials-storewithdb
+
  git clone git://github.com/zkbooks/ZK-Essentials.git zkessentials
 +
git checkout withdb
 +
 +
 
 +
If you prefer to set up the project in eclipse please refer to [[ZK Essentials/Working with the Sample Applications/Setting Up the Applications Using Eclipse/Store with a Database | here]].
 +
 
 +
===Running the Sample Applications Using Maven===
 +
 
 +
To run the sample applications using Maven, change directory to zkessentials root and issue the command:
 +
 
 +
mvn jetty:run
 +
  
Having checked this out you will have the source code and a runnable WAR file which also includes the source code.
+
and direct your browser to http://localhost:8080/zkessentials.
  
If you prefer to set up the project in eclipse please refer to [[ZK Essentials/Working with the Sample Applications/Setting Up the Applications Using Eclipse/Store with a Database | here]].
 
  
 
{{ZKEssentialsPageFooter}}
 
{{ZKEssentialsPageFooter}}

Latest revision as of 23:54, 28 March 2013

Redirect to:

Stop.png This article is out of date, please refer to http://books.zkoss.org/zkessentials-book/master/ for more up to date information.


This book comes with two examples:

  • Store - which uses an in memory model defined by Java statements
  • Store with database - which uses a persistent model driven by Hibernate. This is used at the last chapter of the book.

If you require Maven & Git, please download and install them first:

  1. Maven
  2. Git

Store

The store is available on github, you can retrieve it using the following commands:

git clone git://github.com/zkbooks/ZK-Essentials.git zkessentials
git checkout withoutdb

If you prefer to set up the project in eclipse please refer to here.

Store with Database

The store with database is also available on our svn. You can checkout the project using:

git clone git://github.com/zkbooks/ZK-Essentials.git zkessentials
git checkout withdb

If you prefer to set up the project in eclipse please refer to here.

Running the Sample Applications Using Maven

To run the sample applications using Maven, change directory to zkessentials root and issue the command:

mvn jetty:run

and direct your browser to http://localhost:8080/zkessentials.



Last Update : 2013/03/28

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.