Skip to content

Simple example of a full stack application with Scala & Scala.js!

Notifications You must be signed in to change notification settings

unibo-pps/scala-full-stack-app

Repository files navigation

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

About

Simple example of a full stack application with Scala & Scala.js!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages