Skip to content

DylanArnold/play-with-scalajs-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published