Scala.js project base for Scala World 2017 workshop
First of all make sure you have the necessary tools installed. You'll need the following:
- Git (downloads for all platforms)
- Java 8 JDK (downloads for all platforms)
- SBT (setup for Linux | Windows | Mac)
Now you're ready to download and start using the starter project:
git clone https://github.com/ochrons/scalaworld-scalajs.git
cd scalaworld-scalajs
sbt updateClassifiers
to download dependenciesgit checkout clientserver
sbt updateClassifiers
to download dependencies for the client-server versiongit checkout master
to go back to the client-only versionsbt
- >
~fastOptJS
automatically compiles your code to JS when you make changes - In your browser navigate to http://localhost:12345/target/scala-2.12/classes/index.html
There is a more advanced version of the project under the clientserver
branch which includes, to no one's surprise, a
web client and a server :)