Skip to content

artaius/openchemlib-vaadin

Repository files navigation

OpenChemLib Vaadin

Vaadin Java integration of the OpenChemLib JS components (OpenChemLib JS is the JavaScript port of OpenChemLib).

StructureView StructureView

Usage

Grab the precompiled jar file(s) from Releases or add the following dependency to your project:

<dependency>
    <groupId>ch.artaios</groupId>
    <artifactId>openchemlib-vaadin</artifactId>
    <version>1.0.1</version>
</dependency>

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

Development

Starting the test/demo server

  1. Run mvn jetty:run.
  2. Open http://localhost:8080 in the browser.

Building the production version

To build production version run:

mvn clean
mvn vaadin:clean-frontend
mvn install -Pproduction