conf/routes
defines how application routes HTTP GET requests to an action. Example:
# URI '/' calls index view (index.scala.html)
GET / controllers.HomeController.index
-
controller/
MVC -
services/
MVC -
views/
MVC; uses Twirl template engine
Most requests received by a Play application are handled by an Action.
Controllers are action generators.
Allows full duplex communication to/from browser.
Actions are used to handle standard HTTP requests and send back responses.
Use sbt run
to compile. Then, navigate to http://localhost:9000. Re-compile should happen automatically.