-
Start DB Server (MySQL)
$ cd docker $ docker-compose up -d
MySQL server will start and
sample
database will be created.If you want to access the DB
$ mysql -h 127.0.0.1 -usample -p # the password is `sample`
-
Apply table schemas in the DB
$ sbt flyway-sample/flywayMigrate
-
Start Application Servers
- Server 1 (http => localhost:9000)
$ sbt interfaces/run
- Server 2 (http => localhost:9001)
$ sbt "interfaces/run -Dhttp.port=9001 -Dconfig.resource=application-2.conf"
-
Access to
http://localhost:9000/ (or 9001)
shomatan/play-scala-zio-akka-cluster-chat
The sample of scalable realtime clustered chat server using Scala, Playframework, Akka Cluster and ZIO
Scala