This is a slightly less barebone example of an application written in Scala.js. In particular, it links in libraries that are indispensible in being productive working with Scala.js.
To get started, run sbt ~fastOptJS
in this example project. This should
download dependencies and prepare the relevant javascript files. If you open
localhost:12345/target/scala-2.11/classes/index-dev.html
in your browser. You can then
edit the application and see the updates be sent live to the browser
without needing to refresh the page.
Run sbt fullOptJS
and open up index-opt.html
for an optimized (~200kb) version
of the final application, useful for final publication.
Thanks to Li Hayoi.