andreachild commented on code in PR #3218:
URL: https://github.com/apache/tinkerpop/pull/3218#discussion_r2399524864


##########
docs/src/reference/gremlin-variants.asciidoc:
##########
@@ -1263,19 +1280,62 @@ execute it.
 === Application Examples
 
 The TinkerPop source code contains some sample applications that demonstrate 
the basics of Gremlin-Java. They
-can be found in GitHub 
link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-driver/src/main/java/examples/[here].
+can be found in GitHub 
link:https://github.com/apache/tinkerpop/tree/x.y.z/glv-examples/gremlin-java/[here]
+and are designed to connect to a running <<gremlin-server,Gremlin Server>> 
configured with the
+`conf/gremlin-server.yaml` and `conf/gremlin-server-modern.yaml` files as 
included with the standard release packaging.
+
+This guide assumes Gremlin Server will be executed using Docker. 
Alternatively, Gremlin Server can run locally (see the <<gremlin-server,Gremlin 
Server>> documentation for this option).
 
-The remote connection examples in particular are designed to connect to a 
running <<gremlin-server,Gremlin Server>>
-configured with the `conf/gremlin-server.yaml` file as included with the 
standard release packaging.
+To start Gremlin Server using Docker, first download an image of Gremlin 
Server from Docker Hub:
 
-To do so, download an image of Gremlin Server from Docker Hub, then launch a 
new container with `docker run`:
 [source,shell]
 ----
 docker pull tinkerpop/gremlin-server
+----
+
+Clean server:
+
+[source,shell]
+----
 docker run -d -p 8182:8182 tinkerpop/gremlin-server
 ----
 
-All examples can then be run using your IDE of choice.
+Modern toy graph server:
+
+[source,shell]
+----
+docker run -d -p 8182:8182 tinkerpop/gremlin-server 
conf/gremlin-server-modern.yaml
+----
+
+The remote connection and basic Gremlin examples can be run on a clean server, 
while traversal examples should be 
+run on a server with the Modern graph preloaded.
+
+==== Prerequisites
+- Compatible JDK installed (see <<development-environment,Development 
Environment>> for supported versions)
+- Maven installed
+
+Navigate to the examples directory:
+
+[source,shell]
+----
+cd glv-examples/gremlin-java
+----
+
+Build the examples with Maven:
+
+[source,shell]
+----
+mvn clean install
+----
+
+Run the examples:
+
+[source,shell]
+----
+java -cp target/run-examples-shaded.jar examples.Connections

Review Comment:
   There is no `examples` package?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to