Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 910 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 910 Bytes

Play Framework with Scala.js

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)

Run the application

$ sbt
> run
$ open http://localhost:9000

IDE integration

Eclipse

  1. $ sbt eclipse
  2. Inside Eclipse, File/Import/General/Existing project..., choose the root folder to import the projects

IntelliJ

  1. $ sbt idea
  2. Inside IntelliJ, File/Open..., choose the root folder to import all the projects

Notes

  • fastOptJS is triggered when compiling (works with compile, ~compile, run, ~run)
  • fullOptJS is triggered when calling Play start and dist commands