/webinar-scala-js-20210401

Results of a live coding session

Primary LanguageScala

Web application in Scala only

This is the result of a live coding session organised by B12 Consulting.

This repo demonstrates the bare bones of a full stack scala application. In this case, the backend uses the Play framework as web server, and Laminar as frontend library.

Run it!

In order to run it, you need to have sbt and node.js installed. I'm unsure what is the minimal version of node.js required, but mine is 14 and it works.

To run the repo in its current state, follow the following steps:

  • in one command line/terminal, run sbt server/run
  • in another one, run ~frontend/fastLinkJS within sbt.
  • in yet another one (the last one), go to ./frontend, then run npm install, then npx snowpack dev

You should be automatically redirected to your browser at http://localhost:8080.

Further comments

During the webinar, we did not have the time to mention ScalablyTyped, which is the sbt plugin used to generate all facades types from existing TypeScript typings.