This is a simple example application showing how you can integrate a Play project with a Scala.js project.
The application contains three directories:
scalajvm
Play application (server side)scalajs
Scala.js application (client side)scala
scala 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
fastOptJS
is triggered when compiling (works withcompile
,~compile
,run
,~run
)fullOptJS
is triggered when calling Playstart
anddist
commands