Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 951 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 951 Bytes

Todo App

A simple cross-platform application created using Scala

Project structure

  • 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

How to Run

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

How to compile js code

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

How to run the backend

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