This project was started on Oct 2014 when Scala.js was still an experimental project. I didn't expect Scala.js to come this far because there were a lot of Scala projects that were discontinued. Surprisingly, it's not just still alive but keeps growing.
I have to catch up what I missed for almost 2 years, and start looking for something cool to learn as usual.(Stay hungry, still foolish LoL)
I'm looking forward to using this: https://github.com/japgolly/scalajs-react/tree/topic/neo
The new version I plan in my head is to use React and Microservice.
The sbt build file contains 3 modules -
exampleServerPlay application (server side) -
exampleClientScala.js application (client side) -
exampleSharedScala code that you want to share between the server and the client.
This project would not exist if I didn't find this kick-ass example play-with-scalajs-example.
The project contains 4 simple examples:
Before running the application, you may need to do these steps: 1. Add the folowing to ~/.sbt/0.13/plugins/plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
$ sbt > run $ open http://localhost:9000
$ heroku login $ heroku create $ git push heroku master $ heroku open
compilesimply triggers the Scala.js compilation
runtriggers the Scala.js fastOptJS command on page refresh
~run, continuous compilation is also available
emitSourceMaps in fullOptJS := truein the Scala.js projects.