Project

General

Profile

Sample-hello-world » History » Version 3

Henning Blohm, 28.02.2021 11:21

1 2 Henning Blohm
h1. Hello World Web App Sample
2
3
TBC
4
5
This sample application shows how to set up the most basic Java Web application in z2. 
6
7
Z2 integrates with the Jetty Web container and Web applications on Z2 are really just standard Java EE Web applications. What is unfamiliar for the typical Maven, Gradle, or Ant user is how applications are developed and modularized on Z2. So this sample case is hence more about Web applications as developed on Z2 than it is about Web application development.
8
9 3 Henning Blohm
Please skip to [[#Step by Step - Or Setting Things Up Yourself]] unless you just want to see it running.
10
11 2 Henning Blohm
This sample is stored in the repository "z2-samples-hello-world-web":https://redmine.z2-environment.net/projects/z2-samples/repository/z2-samples-hello-world-web.
12
13
h2. Prerequisites
14
15
{{include(Java_Version_Requirements)}}
16
17
h2. Setting up the sample
18
19
Follow these instructions, if you just want to see it running. Otherwise we recommend skipping this section and rather follow the step by step instructions below.
20
21
Here's the really fast version:
22
23
{{include(Install_sample_prefix)}}
24
25
<pre><code>
26
git clone -b v2.8 https://www.z2-environment.net/git/z2-samples-hello-world-web
27
</code></pre>
28
29
{{include(Install_sample_postfix)}}
30
31
The first time you launch the sample, it will take a while to download all required resources.
32
33
h2. Step by Step - Or Setting Things Up Yourself