In this section, we will use the same previous Play Framework/Scala based HelloWorld example and extend it with Akka Toolkit. I'll use the content from the previous example to demonstrate this.
Perform the following steps:
- Import the previously developed Play/Scala HelloWorld example into your favorite IDE.
- I just renamed this Project Name as play-scala-akka-helloworld-app.
- Define the configurations routes file:
routes:
# Routes
# This file defines all application routes (Higher priority
routes first)
# ~~~~
# HelloWorldController without using Play DI
GET /helloWorldNoDI
controllers.HelloWorldNoDIController.helloWorldNoDI
# HelloWorldController with Play DI
GET /helloWorldDI controllers.HelloWorldDIController.helloWorld
# Map static resources from the /public...