This is one of the Holon Platform example projects.
This example shows how to setup a simple web application using Vaadin 8 as UI engine and the Holon Platform Vaadin module, wich provides Vaadin UI builders and integration with the Holon Platform foundation architecture, such as the Property
model and the Datastore
API.
The Holon Platform ViewNavigator
will be used to configure and manage the application's views.
This example addresses the following topics:
- Setup a web application using the Holon Platform Vaadin integration and Spring Boot auto-configuration support
- Use the
ViewNavigator
to configure the application views and hanlde navigation operations - Use the Holon Platform
Property
model andDatastore
API with the platform Vaadin integration components to display and manage a data entity.
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 views:
- Home: the home view, listing all the available products and allowing to display the product data by clicking on a row
- View: displays a product in an application window, providing the "Edit" and "Delete" operations
- Manage: manages the product data, providing an input form to create or update a product
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
The complete Holon Platform reference guide is available here.
For the specific documentation about the modules and the components used in this example see:
- Documentation about the Datastore API
- Documentation about the Vaadin UI module
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.
All the Holon Platform modules and examples are Open Source software released under the Apache 2.0 license.
See Holon Platform Examples for the examples directory.