Skip to content

jbbrissaud/zioCounters

Repository files navigation

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.

I. Start the app

1. Start backend

- in a console

sbt "~backend / run"

2. Start frontend

- in another console

sbt "~frontend / fastOptJS"

3. Test the app

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published