Skip to content

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 todos
  • backend: the service logic implementation + an Akka HTTP endpoint

How to Run

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

How to Compile JS Code

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

How to Run the Backend

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

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages