Home United States USA — software Vaadin With Scala Vaadin With Scala

Vaadin With Scala Vaadin With Scala

510
0
SHARE

Scala devs who want to use Vaadin might be confused by the lack of full documentation. So, here’s a ‘Hello World’ app in Vaadin 8 with Scala running on Jetty.
Following my frustrated attempt to Dockerize an Ionic application as the Web UI of my petty Akka project, I started evaluating the latest version of Vaadin.
I followed the ” Using Vaadin with Scala” documentation to create a ‘Hello World’, but the documentation doesn’t contain a fully working example. So I’ve put the steps below to help others who might be in the same situation as I was.
Run the Maven archetype below to get a simple app created.
Add the Scala dependency and plugin to the pom.xml
Create the following class inside the new scala directory.
Now just execute:
mvn clean package jetty: run -Dvaadin.productionMode=true
There should be something similar to the below in the logs. The important information here is that Jetty is running on port 8080.
Go to localhost: 8080 from the web browser and the page should be working.

Continue reading...