In this recipe, we will create a new registration module that will manage user registration and authentication requests. Creating a module for this allows us to reuse a very common workflow in the modern web application.
For Java, we need to perform the following steps:
Run the
foo_java
application with Hot-Reloading enabled:activator "~run"
Inside the modules directory,
foo_java/modules
, generate the registration module project using theactivator
:activator new registration play-java
Add the dependency between the root project,
foo_java
, and the module,registration
, infoo_java/build.sbt
:lazy val root = (project in file(".")) .enablePlugins(PlayJava) .aggregate(filemon) .dependsOn(filemon) .aggregate(registration) .dependsOn(registration) lazy val filemon = (project in file("modules/filemon")) .enablePlugins(PlayJava) lazy val registration = (project in file("modules/registration...