This is a simple example application showing how you can integrate a Play project with a Scala.js project.
The application contains three directories:
scalajvmPlay application (server side)scalajsScala.js application (client side)scalascala code that you want to share between scalajs and scalajvm (both client and server sides)
$ sbt
> run
$ open http://localhost:9000$ sbt eclipse- Inside Eclipse,
File/Import/General/Existing project..., choose the root folder to import the projects
$ sbt idea- Inside IntelliJ,
File/Open..., choose the root folder to import all the projects
fastOptJSis triggered when compiling (works withcompile,~compile,run,~run)fullOptJSis triggered when calling Playstartanddistcommands