This repository is an ongoing effort to port Akka to the JavaScript runtime, thanks to Scala.js
To have a blazing fast kick off you can check out our examples.
Otherwise, if you want to start from scratch:
First of all you need to setup a new Scala.js project. Then add to your JS project configuration:
resolvers += Resolver.sonatypeRepo("releases")
libraryDependencies += "eu.unicredit" %%% "akkajsactor" % "0.2.4.10"
If you want to use Akka Stream:
libraryDependencies += "eu.unicredit" %%% "akkajsactorstream" % "0.2.4.10"
Please note that Akka.js 0.2.4.10 is shipped from the stable Akka 2.4.10. At this point you can use most of the Akka core Api as described in the official docs.
Check out the @andreaTP session at Scala Days 2016: slides video
The BSc thesis detailing most of the work and the approach taken can be found here
The original codebase derives from Sébastien Doeraene's scala-js-actors
, you can find his original report here.
To work with the very last version you can compile and publish local:
git clone https://github.com/unicredit/akka.js
cd akka.js
sbt akkaJsActorJS/publishLocal
To have also the bleeding edge integration of akka-stream:
sbt akkaJsActorStreamJS/publishLocal
Akka.Js can now compile against different versions of Akka, we check the codebase against MASTER, but for specific needs you can try to compile against a different Akka version by changing the akkaVersion while building.
Akka.js is distributed under the Scala License.