Created
February 10, 2014 21:45
-
-
Save natbusa/8924854 to your computer and use it in GitHub Desktop.
main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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