Hacker News new | ask | show | jobs
by joshuahornby 3810 days ago
Bear in mind I am asking this question as someone who has no experience in Scala/Play but is looking to learn some new languages/frameworks:

How do the Play framework and Scala.js work with each other? Can I easily write an application is Scala and then sprinkle Scala.js around to perform AJAX data fetching for example?

1 comments

For someone who knows Scala the tutorial at http://www.scala-js.org/tutorial/basic/ seems pretty thorough.

But the short answer is yes.

There's also this: https://github.com/vmunier/play-with-scalajs-example

And then if you want something interactive but with low commitment, you can give the examples in Typesafe Activator a spin:

  $ brew install typesafe-activator
  $ activator ui
That'll open a browser window. Form there you can open tutorials, step through them while a code panel gets highlighted as you go, edit code in-browser, execute tests and run. All from a single app running in your browser with a 30 second install. It's gotta be the lowest friction intro/development environment ever conceived. Highly recommended if you've never seen it.