Github → heroku (spring-boot)
A super simple single table CRUD example with Spring Data JPA and Vaadin. Uses Spring Boot for easy project setup and development. Helps you to get started with basic JPA backed applications and Vaadin Spring Boot integration library.
For larger applications, consider applying some commonly known design patterns for your UI code. Check e.g. this MVP example.
As an example for a really easy Vaadin add-on usage, there is Switch add-on added as a dependency and the application uses cdn.virit.in service to compile and host the widgetset. See this changeset for setup instructions.
- Clone the project
- Import to your favorite IDE
- Execute the main method from Application class
git clone https://github.com/mstahv/spring-data-vaadin-crud.git
cd spring-data-vaadin-crud
mvn spring-boot:run
The built jar file is really simple to deploy in modern PaaS services. E.g. if you have existing Bluemix account and are already logged in with your cf (CLI) tools just execute following:
git clone https://github.com/mstahv/spring-data-vaadin-crud.git
cd spring-data-vaadin-crud
mvn install
cf push choose-namefor-your-server-here -p target/*.jar -b https://github.com/cloudfoundry/java-buildpack.git
Note, that you can also use the cf push without the java-buildpack, but then you need to downgrade the example to Java 7. Check out the custom "java7" branch for that.