A simple cross-platform application created using Scala
- todo: contains the shared code between the backend and the frontend
- frontend: the JS-based UI for handling todos
- backend: the service logic implementation + an Akka HTTP endpoint
To run the application, launch it.unibo.WebServer (you can use IntelliJ IDEA or the sbt shell -> project backend; runMain it.unibo.WebServer).
The service will be available at http://localhost:9000
In an sbt shell, type:
project frontend
Then, transpile the source code using:
fastLinkJS
This will produce a JS bundle at: frontend/target/scala-3.3.7/frontend-fastopt.js
In an sbt shell, type:
project backend
Then, you can run the server with:
runMain it.unibo.WebServer
This will copy the JS bundle to the resources folder and serve it at http://localhost:9000