svelte-graalvm-sbt-scala-ssr Svelte Themes

Svelte Graalvm Sbt Scala Ssr

svelte-graalvm-sbt-scala-ssr

Proof of concept

SSR (server-side rendering) of Svelte on GraalVM/JDK/Java, with Svelte code calling Scala case classes directly using TypeScript definitions.

No wiring is done for serving HTTP - the proof is in the pudding of JsRunnerSpec which is has a unit test to validate the behavior.

Usage

# first terminal: this will compile the Svelte code
$ cd frontend
$ npm install
$ npm run dev
# second terminal: this will run the unit test
$ sbt testQuick

Requirements

Credits

Frontend code uses parts of the MDN Svelte tutorial.

Top categories

Loading Svelte Themes