Vaadin Java integration of the OpenChemLib JS components (OpenChemLib JS is the JavaScript port of the OpenChemLib Java library).
Find it on Vaadin addon directory or or directly add the following dependency to your project:
<dependency>
<groupId>ch.artaios</groupId>
<artifactId>openchemlib-vaadin</artifactId>
<version>X.X.X</version>
</dependency>
Additionally you can also grab the precompiled jar file(s) from Releases.
To be able to properly run in development mode, don't forget to add package ch.artaios
to src/main/resources/application.properties
like follows:
vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,ch.artaios
The project is based on SpringBoot.
The following allows to experiment with the components in the browser.
- Run
ch.artaios.TestServer
insrc/test/java/ch/artaios/openchemlib/vaadin
. - Open https://localhost:8443 in the browser.
To build production version run:
mvn install -Pproduction