This project is a very basic app in Scala 3 + ZIO 2 + zio-http + Laminar.
The backend uses zio-http and zio 2.
The frontend uses Laminar and zio 2, allowing parallelism in a single-threaded web page.
The project is in itself totally useless, but is a good starting point for anyone interested in this amazing technology.
sbt "~backend / run"
sbt "~frontend / fastOptJS"
Then you can access the frontend at http://localhost:8090
click on one button or the other and see parallelism.
200 counters are displayed, and can be run independently. Each counter will stop counting 30 seconds after a start.
The start depends on the x position of the mouse.
Note: The .gitignore file is a little bit unconventional, indicating what to keep and not what to ignore.