Commit Graph

11 Commits

Author SHA1 Message Date
efim 2244f38348 scalafmt all 2023-04-25 10:25:36 +04:00
efim 8716385ea1 adding fork := true for backend server interrupts
without it app starts in same jvm and we're told that Ctrl+C will not
always kill the Ember server:

https://typelevel.org/cats-effect/docs/2.x/datatypes/ioapp
WARNING: If you run your IOApp program from sbt, you may observe cancellation and resource releasing is not happening. This is due to sbt, by default, running programs in the same JVM as sbt, so when your program is canceled sbt avoids stopping its own JVM. To properly allow cancellation, ensure your progam is forked into its own JVM via a setting like fork := true in your sbt configuration.
2023-04-23 23:35:45 +04:00
efim 5ac864f15e not working: attempt to stream in websocket
added Vite proxy, tested with websocat, with direct js websocket.
the error seems to be Laminex related
2023-04-23 22:22:02 +04:00
efim 329dc6e8b2 initial way to run the server:
sbt:backend> assembly
java -jar backend/target/scala-3.2.0/backend-assembly-0.1.0-SNAPSHOT.jar
2023-04-23 18:33:29 +04:00
efim 313cf3a405 fixing common as crossCompiled 2023-04-23 17:48:24 +04:00
efim 2c66a9a8c2 adding websocket connection to room state 2023-04-23 16:29:05 +04:00
efim df35f09b71 circe codec derivation to models 2023-04-23 15:00:00 +04:00
efim c501d14094 add sub routes to backend app
in the shape of websocket and post \ get
with receiving of some request model
2023-04-23 11:55:53 +04:00
efim d8af92787d adding backend project
will try to do rest & websocket api with http4s
2023-04-23 11:19:38 +04:00
efim 527e12dbd8 add simple rendering of other players 2023-04-21 19:51:43 +04:00
efim fd7ddd9588 adding scalajs & laminar
https://www.scala-js.org/doc/tutorial/laminar.html
2023-04-21 17:22:17 +04:00