Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 2.11 KB

README.md

File metadata and controls

40 lines (30 loc) · 2.11 KB

}> add-on demo project

A common demo project for lazy add-on developers, hosted by Team Parttio. Feel free to make a PR for this project that showcases the features of your add-on.

Running the application

The project is a standard Maven project. To run it from the command line, type mvn, then open http://localhost:8080 in your browser.

You can also import the project to your IDE of choice as you would with any Maven project. Read more on how to set up a development environment for Vaadin projects (Windows, Linux, macOS).

Deploying to Production

To create a production build, call mvn clean package -Pproduction. This will build a JAR file with all the dependencies and front-end resources, ready to be deployed. The file can be found in the target folder after the build completes.

Once the JAR file is built, you can run it using java -jar target/myapp-1.0-SNAPSHOT.jar (NOTE, replace myapp-1.0-SNAPSHOT.jar with the name of your jar).

Project structure

  • MainView.java in src/main/java is an example Vaadin view.
  • src/main/resources contains configuration files and static resources
  • The frontend directory in the root folder is where client-side dependencies and resource files should be placed.

Useful links