Skip to content

banditopazzo/gremlin-ammonite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gremlin-ammonite

Ammonite-REPL preconfigured for Apache TinkerPop 3 using gremlin-scala Scala wrapper

What's in the box?

  • Scala 2.12.4
  • Ammonite-REPL 1.1.0
  • TinkerPop 3.3.1
  • gremlin-scala 3.3.1.2

How to use:

Launch the downloaded file with:

  • java -jar filename.jar
implicit val graph = TinkerFactory.createModern.asScala
val name = Key[String]("name")

graph.V.hasLabel("person").value(name).toList
// List(marko, vadas, josh, peter)

How to run directly from sbt:

  • sbt run

How to create the fat jar standalone version:

  • sbt assembly

The jar file will be created under /target/scala-2.12 and you can run it with:

  • java -jar filename.jar