Skip to content

Latest commit

 

History

History

simple-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Holon platform examples: Vaadin Flow UI

This is one of the Holon Platform example projects.

This example shows how to setup a simple web application using Vaadin Flow as UI engine and the Holon Platform Vaadin Flow module, wich provides integration with the Holon Platform foundation architecture, such as the Property model and the Datastore API.

Topics

This example addresses the following topics:

  • Setup a web application using the Holon Platform Vaadin Flow integration and Spring Boot auto-configuration support. @ Use the @QueryParameter annotation to inject query parameter values in routing targets.
  • Use the Navigator API to handle application routing.
  • Use the Holon Platform Property model and Datastore API with the Vaadin components to display and manage a data entity.

Example structure

The Product class represents the property model for a simple product data entity.

A JDBC Datastore backed by a H2 database is used for product data persistence, using a table named products created using the schema.sql file and populated using the data.sql file.

This application is composed by three routes:

  • Home: the home view, listing all the available products and allowing to: edit the product data by clicking on a row, delete a product using a component column.
  • Manage: manages the product data, providing an input form to create or update a product.

Run this example

This example is configured using Spring Boot, so you just have to run the Application class, open a web browser and navigate to:

http://localhost:8080

Documentation

The complete Holon Platform reference guide is available here.

For the specific documentation about the modules and the components used in this example see:

System requirements

The Holon Platform is built using Java 8, so you need a JRE/JDK version 8 or above to build and run this example projects.

License

All the Holon Platform modules and examples are Open Source software released under the Apache 2.0 license.

Holon Platform Examples

See Holon Platform Examples for the examples directory.