Reactive web app with Akka and AngularJS
Scala JavaScript HTML Shell CSS
Latest commit 798a7dd Jun 29, 2016 @hseeberger Akka Persistence

Reactive Flows

Reactive Flows is a demo project showing a Reactive web app built with:

  • Akka Actors
  • Akka HTTP
  • Akka SSE (server-sent events)
  • Akka Distributed Data
  • Akka Cluster Sharding
  • Akka Persistence
  • AngularJS
  • Cassandra
  • Scala
  • etcd


  • Important: Reactive Flows makes use of server-sent events and advanced JavaScript which aren't available for all browsers, so make sure to use Firefox > 25.0, Safari > 7.1 or Chrome > 45.0
  • To run a single node, simply execute reStart in an sbt session; you can shutdown the app with reStop
  • To run multiple nodes, build a Docker image with docker:publishLocal and execute the script bin/ without an argument or a number from [0, 10)
  • As the names and labels of the flows aren't persisted, you have to create them after the app has started; see below examples
  • Important: Reactive Flows uses ConstructR for initializing the cluster; make sure etcd is started and available, e.g. via bin/
  • Important: Reactive Flows uses the Cassandra plugin for Akka Persistence; make sure Cassandra is started and available under the configured contact point, e.g. via bin/

REST API Examples

curl -s | jq
curl -s -H 'Content-Type: application/json' -d '{ "label": "Akka" }' | jq
curl -s -H 'Content-Type: application/json' -d '{ "label": "AngularJS" }' | jq
curl -s -H 'Content-Type: application/json' -d '{ "text": "Akka rocks!" }' | jq
curl -s '' | jq

curl -s -N
curl -s -H 'Content-Type: application/json' -d '{ "text": "Akka and AngularJS are a great combination!" }' | jq
curl -s -H 'Content-Type: application/json' -d '{ "text": "AngularJS rocks!" }' | jq

curl -s -X DELETE

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.


This code is open source software licensed under the Apache 2.0 License.