Home / TeaVM Patterns and Pitfalls     frequal.com

Make A Single Page App (SPA) With Java

Single-Page Apps are in high demand. As a Java developer, delivering an SPA is not only possible, but easy with the right toolkit. The Flavour toolkit (built on TeaVM) is powerful and full-featured. It is easy to get started thanks to a convenient maven archetype. Let's look deeper.

Starter Project

Create a new SPA project by following the TeaVM Flavour instructions here: http://teavm.org/docs/intro/getting-started.html

Simply enter the maven group id (com.example) and artifact id (test) and the project is generated. mvn clean install will build the app, and you can open it in a browser right away. The code is Java, but it runs in a browser without any plugins.

Under the Covers


Last modified on 22 Jan 2022 by AO

Copyright © 2022 Andrew Oliver