Skip to content

Instantly share code, notes, and snippets.

@natbusa
Created February 10, 2014 21:45
Show Gist options
  • Save natbusa/8924854 to your computer and use it in GitHub Desktop.
Save natbusa/8924854 to your computer and use it in GitHub Desktop.
main
object Boot extends App {
implicit val system = ActorSystem()
// create and start our service actor
val service = system.actorOf(Props[BreakfastApiService], "breakfast-api-service")
// start a new HTTP server with our service actor as the handler
IO(Http) ! Http.Bind(service, "localhost", port = 8888)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment