Skip to content

vaadin/k8s-demo-app

Repository files navigation

k8s-demo-app

A Vaadin demo app to test Vaadin cluster setup

Branches

There are 2 branches in this repo:

  • main It's a project downloaded from start.vaadin.com and modified to include the vaadin-cluster-support dependency to make the app aware of cluster update events, and to support stateless authentication by using Vaadin security helpers
  • plain-java A simple vaadin application with the vaadin-cluster-support but not depending on spring stack, and without authentication.

Running the application

The project is a standard Maven project. To run it in dev-mode, from the command line type mvnw (Windows), or ./mvnw (Mac & Linux), then open http://localhost:8080 in your browser.

Deploying to Production

To create a production build, call mvnw clean package -Pproduction (Windows), or ./mvnw clean package -Pproduction (Mac & Linux).

Since this application is thought to be package as a docker image and deployed in a docker hub, there is a script build-app.sh for building 3 versions of the application and uploading to docker hub.

You need to change USER and APP to match your application, as well as provide the appropriate privilegies to the docker push command.

For a more detailed information on how you can customize and package your application read the Application Setup section in the cluster setup repository.