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 tods
- backend: the service logic implementation + an akka http endpoint
You have to run it.unibo.WebServer (you can use IDEA or sbt shell -> project backend
; runMain it.unibo.WebServer
).
The service will be avaiable at localhost:8080
In a sbt shell, type:
project frontend
Then, you have to transpile the source code with:
fastOptJS
This will produce a js bundle in: frontend/target/scala-3.3.3/frontend-fastopt/main.js
In a sbt shell, type:
project backend
Then, you can run the server with:
runMain it.unibo.WebServer
This will copy the js bundle in the resources folder and serve it at localhost:8080