Skip to main content

Intro

Let's get working with OverLayer in less than 5 minutes.

Getting Started#

Scala 2.13
sbt new scala/hello-world.g8
Scala 3
sbt new scala/scala3.g8

More info Scala documentation page

Install Dependencies#

This is this example we will be using akka's Typed API.

In this example, the JSON parser being used is spray-json. You can still use other json parser in your http part of your application.

libraryDependencies ++= {  val sangriaVer = ???  val AkkaVer = ???  val AkkaHttpVer = ???  val latestVersion = ???  val sangriaSprayVer = ???
  Seq(    "org.sangria-graphql" %% "sangria" % sangriaVer,    "org.sangria-graphql" %% "sangria-spray-json" % sangriaSprayVer,    "com.typesafe.akka" %% "akka-actor-typed" % AkkaVer,    "com.typesafe.akka" %% "akka-stream" % AkkaVer,    "com.typesafe.akka" %% "akka-http" % AkkaHttpVer,    "com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVer,    "io.github.d-exclaimation" %% "over-layer" % latestVersion  )}