Full Stack Scala with the Play Framework and Scala.js by Greg Dorrell
Вставка
- Опубліковано 9 лют 2025
- JavaScript front-ends are getting richer and codebases larger. TypeScript has seen good adoption as the static typing helps with a growing codebase. I think Scala.js, when combined with Scala on the backend, is even better! In Scala.js the types are not optional, and you can even share code between your backend and front-end. In this talk, we will look at how to build rich web apps end-to-end with Scala. We will start with an introduction to the Play framework, a traditional MVC framework which can be used for the backend. Then we will look at Scala.js - what it is, why you might want to use it, and how to use it - specially with the Play framework. We will also take a look at how developed the ecosystem around Scala.js is, and how you can use existing JavaScript libraries.
Greg Dorrell is a backend Scala developer at Hotels.com. He's been using Scala in production for 5 years. In the last few years, he's gotten into teaching - initially getting involved with the Code Club initiative to each primary school children how to code. Now he's teaching colleagues at his company how to use Scala.
Great stuff! Very well done conducted and convey! savvy!!
Update to async code shown in tutorial uses some deprecated methods (around 9:00).
When following the tutorial with the current 2.6 version of Play, note you have to make an adjustment.
From Github the original line is: class HomeController @Inject()(cc: ControllerComponents) extends AbstractController(cc) {
Per video the change is: class HomeController @Inject()(ws: WSClient) extends Controller {
Per current LIBs, should be: class HomeController @Inject()(ws: WSClient) extends InjectedController {
I also needed to add `libraryDependencies += ws` to my build.sbt at that time
Great presentation. thanks! Its nice for someone to get started with 2 technologies. Surprised at downvotes. it is an awesome presentation made available free of cost.
Why Scala over Golang ? Any thoughts please ?
Thanks for the good presentation.
Great talk dude!!! Thanks.
Can Play work with Kotlin?
In his Scala.Js Demo, his is using scalatags which is an external library and not part of the core Scala.js, he should have mentionned that.
He clearly mentions that Autowire is a external library at 28:33.
SPA?
how do I deploy a play project without using any cloud.. like we deploy java based project on tomcat | weblogic.. similarily how can we deploy play project..
akka http or netty servers
It’s not deployed!!! You can run the app as java - jar app.jar
Why bring Play between ScalaJs and WebServer ?
Why, because you were paid for by JetBrains ?
Play totally makes sense for serving production websites, do you write all your server-side scripts from scratch? Play isn't developed by JetBrains --- please think for a minute before you comment
Read about native threads and green threads. You would be interested to learn how actor model fits here.