Application structure
The application is divided into three folders: client
, server
and shared
. As the names imply, client
contains the client code for the SPA, server
is the server and
shared
contains code and resources used by both. If you take a quick look at build.sbt
you will notice the use of crossProject
to define this Scala.js specific cross-building project structure.
Within each sub-project the usual SBT/Scala directory structure convention is followed.
We'll get to the details of the project build file later on, but let's first take a look at actual client code!