Skip to content

A super simple single table CRUD example with Spring Data Couchbase and Vaadin.

Notifications You must be signed in to change notification settings

ldoguin/spring-data-vaadin-crud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

Spring Data Couchbase CRUD with Vaadin

A super simple single table CRUD example with Spring Data Couchbase and Vaadin. Uses Spring Boot for easy project setup and development. Helps you to get started with basic Couchbase 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.

How to play with this example

Suggested method

  • Clone the project
  • Import to your favorite IDE
  • Execute the main method from Application class

Just execute it with maven

git clone https://github.com/mstahv/spring-data-vaadin-crud.git
cd spring-data-vaadin-crud
mvn spring-boot:run

Just create the package and run it

The built .jar file is auto-runnable, so as you can move it to any computer having java installed and run the app.

git clone https://github.com/mstahv/spring-data-vaadin-crud.git
cd spring-data-vaadin-crud
mvn package
java -jar target/spring-data-vaadin-crud-0.0.1-SNAPSHOT.jar

Just deploy it

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.

About

A super simple single table CRUD example with Spring Data Couchbase and Vaadin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%