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.gitcd scalaworld-scalajssbt updateClassifiersto download dependenciesgit checkout clientserversbt updateClassifiersto download dependencies for the client-server versiongit checkout masterto go back to the client-only versionsbt- >
~fastOptJSautomatically 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 :)