molecule.datalog.datomic.marshalling.RpcServer_datomic.scala Maven / Gradle / Ivy
package molecule.datalog.datomic.marshalling
import akka.http.scaladsl.Http
import molecule.core.marshalling.MoleculeRpcServer_AkkaHttp
import scala.io.StdIn
/**
* Server app serving http requests from client
*
* Run with
*
* sbt datalogDatomicJVM/run
*/
object RpcServer_datomic extends MoleculeRpcServer_AkkaHttp(Rpc_datomic) with App {
Http()
.newServerAt("localhost", 8080)
.bind(moleculeRpcRoute)
println("Started server at 127.0.0.1:8080, press enter to kill server")
StdIn.readLine()
system.terminate()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy