-
Notifications
You must be signed in to change notification settings - Fork 0
Home
AkkaDisaster is the companion to FlaPyDisaster, running the calculations using a scala/akka-http server. The server is Dockerized as well, and support for Docker Swarm cluster is on the way.
This is an sbt project, so Scala and SBT are the only prerequisites.
To compile, clone the github repo and run
> sbt compile
This will download dependencies and compile the code. To start the server, run
> sbt run
To start the Docker container, run
> docker run -d -p 9001:9001 cliftbar/akkadisaster
The DockerHub repo is here.
By default, the server listens on port 9001
and listens on 0.0.0.0
(which allows external connections). To change these, update application.conf with your desired values.
IntelliJ works well as a development IDE, and is already set up in the .gitignore file. To use another IDE, make sure to update .gitignore so no IDE files get checked in.
- Clone Repo
- In IntelliJ, install the Scala plugin
- In IntelliJ, go to
File -> Project from Existing Source
and select the github repo - Make sure AkkaDisaster/src/main is added as a source root
- Add a new SBT Run Configuration, with a Task of
Run
and update the VM parameter-Xmx
to2048M
(to deal with larger storms, change this if memory issues arise)