Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 727 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 727 Bytes

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.