Create build.sbt
scalaVersion := "3.1.1"
libraryDependencies ++= Seq (
"org.analogweb" %% "analogweb-scala" % "0.13.0"
)
Start sbt console.
$ sbt console
Write a code.
scala> import analogweb._
import analogweb._
scala> http("localhost",8000) {
| get("/ping") { "PONG" }
| }.run
...
INFO: An Analogweb application has been booted. (Erapsed time: 412ms)
and you will get them.
$ curl localhost:8000/ping
PONG