You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/06/19 11:29:10 UTC
[causeway] branch master updated: CAUSEWAY-3493: revert moving of Demo App's adoc files
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/master by this push:
new 5222951b16 CAUSEWAY-3493: revert moving of Demo App's adoc files
5222951b16 is described below
commit 5222951b16883cf04b9fe1320046317449082fd8
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Jun 19 13:29:05 2023 +0200
CAUSEWAY-3493: revert moving of Demo App's adoc files
---
examples/demo/domain/src/main/adoc/antora.yml | 19 +++++
.../main/adoc/modules/demo/images/teaser-light.png | Bin 0 -> 673305 bytes
.../domain/src/main/adoc/modules/demo/nav.adoc | 4 +
.../src/main/adoc/modules/demo/pages/about.adoc | 90 +++++++++++++++++++++
.../adoc/modules/demo/partials/module-nav.adoc | 2 +
5 files changed, 115 insertions(+)
diff --git a/examples/demo/domain/src/main/adoc/antora.yml b/examples/demo/domain/src/main/adoc/antora.yml
new file mode 100644
index 0000000000..072c382aa9
--- /dev/null
+++ b/examples/demo/domain/src/main/adoc/antora.yml
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: docs
+version: latest
diff --git a/examples/demo/domain/src/main/adoc/modules/demo/images/teaser-light.png b/examples/demo/domain/src/main/adoc/modules/demo/images/teaser-light.png
new file mode 100644
index 0000000000..0577aeaaaf
Binary files /dev/null and b/examples/demo/domain/src/main/adoc/modules/demo/images/teaser-light.png differ
diff --git a/examples/demo/domain/src/main/adoc/modules/demo/nav.adoc b/examples/demo/domain/src/main/adoc/modules/demo/nav.adoc
new file mode 100644
index 0000000000..20be835bdc
--- /dev/null
+++ b/examples/demo/domain/src/main/adoc/modules/demo/nav.adoc
@@ -0,0 +1,4 @@
+
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+include::docs:ROOT:partial$component-nav.adoc[]
diff --git a/examples/demo/domain/src/main/adoc/modules/demo/pages/about.adoc b/examples/demo/domain/src/main/adoc/modules/demo/pages/about.adoc
new file mode 100644
index 0000000000..321094c158
--- /dev/null
+++ b/examples/demo/domain/src/main/adoc/modules/demo/pages/about.adoc
@@ -0,0 +1,90 @@
+= Demo App
+
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+The Demo app provides an introduction to the Apache Causeway programming model, allowing you to learn the basics with a minimum of hassle.
+It's also a useful reference to help you develop your own Apache Causeway applications.
+
+
+image::teaser-light.png[]
+
+The application is packaged up as a Docker image (link:https://hub.docker.com/r/apachecauseway/demo-wicket-jdo/tags/[apachecauseway/demo-wicket-jdo] or link:https://hub.docker.com/r/apachecauseway/demo-wicket-jpa/tags/[apachecauseway/demo-wicket-jpa]) on Docker Hub, so you can easily run it yourself (as described <<Running the Docker Image,below>>).
+You can see also try out the application online, link:https://demo-wicket.jdo.causeway.incode.work[jdo] or link:https://demo-wicket.jpa.causeway.incode.work[jpa].
+
+== Prereqs
+
+Head over to https://www.docker.com/community-edition[Docker] to install the community edition.
+
+
+== Running the Docker Image
+
+Assuming the `jdo` variant (if using `jpa`, just substitute "jdo" with "jpa" in the commands below):
+
+* Pull the Demo image
++
+[source,bash]
+----
+docker pull apachecauseway/demo-wicket-jdo:latest
+----
+
+* Running the Docker Image
++
+[source,bash]
+----
+docker pull apachecauseway/demo-wicket-jdo:latest
+docker run -d -p8080:8080 apachecauseway/demo-wicket-jdo:latest
+----
++
+The Demo app can then be accessed at http://localhost:8080/wicket/[].
+Login with `sven:pass`.
+
+* Stop and remove the container named `demo`
++
+[source,bash]
+----
+docker stop demo && docker rm demo
+----
+
+=== Customization
+
+The way in which the app is run by Docker be customised in a couple of ways.
+Assuming the `jdo` variant (if using `jpa`, just substitute "jdo" with "jpa" in the commands below):
+
+* Prototyping mode
++
+----
+docker run -d -p8080:8080 -ePROTOTYPING=true apachecauseway/demo-wicket-jdo:latest
+----
+
+* Attached console
++
+----
+docker run -it -p8080:8080 apachecauseway/demo-wicket-jdo:latest
+----
++
+Use CTRL-C to stop and detach
++
+TIP: on Windows, you might need to prefix with `winpty`.
+
+* Specify a different context Path
++
+----
+docker run -d -p8080:8080 -eContextPath=/myPath apachecauseway/demo-wicket-jdo:latest
+----
++
+then access at http://localhost:8080/myPath/wicket/[].
+
+== Contributing
+
+If you like to get involved quickly, please feel free to open new pull requests (at github) or just join the discussion and provide feedback.
+
+If you are interested in contributing to Apache Causeway, see the xref:conguide:ROOT:about.adoc[Contributors' Guide] for details.
+
+
+== Credits
+
+* This Demo App uses icons made by link:http://www.freepik.com[Freepik] and
+link:https://www.flaticon.com/authors/smashicons[Smashicons].
+These are licensed by link:http://creativecommons.org/licenses/by/3.0/[Creative Commons BY 3.0^]
+
+* We use link:https://github.com/asciidoctor/asciidoctorj[AsciidoctorJ] for Asciidoc rendering.
diff --git a/examples/demo/domain/src/main/adoc/modules/demo/partials/module-nav.adoc b/examples/demo/domain/src/main/adoc/modules/demo/partials/module-nav.adoc
new file mode 100644
index 0000000000..be9856aa9a
--- /dev/null
+++ b/examples/demo/domain/src/main/adoc/modules/demo/partials/module-nav.adoc
@@ -0,0 +1,2 @@
+
+** xref:docs:demo:about.adoc[Demo App]