All Downloads are FREE. Search and download functionalities are using the official Maven repository.

molecule.datalog.datomic.marshalling.RpcServer_datomic.scala Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
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