Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data-Centric Applications with Vaadin 8

You're reading from   Data-Centric Applications with Vaadin 8 Develop and maintain high-quality web applications using Vaadin

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781783288847
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alejandro Duarte Alejandro Duarte
Author Profile Icon Alejandro Duarte
Alejandro Duarte
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Creating New Vaadin Projects FREE CHAPTER 2. Modularization and Main Screens 3. Implementing Server-Side Components with Internationalization 4. Implementing Authentication and Authorization 5. Connecting to SQL Databases Using JDBC 6. Connecting to SQL Databases Using ORM Frameworks 7. Implementing CRUD User Interfaces 8. Adding Reporting Capabilities 9. Lazy Loading 10. Other Books You May Enjoy

About the demo applications

This book offers value in two ways: the book itself with its explanations, and its companion source code. Instead of developing one single application throughout the book, several small demo applications demonstrate the concepts explained in each chapter. This helps you to jump to any chapter you are interested in, and fully understand the purpose of each part of the code without worrying about the technicalities that we have looked at in other chapters.

Understanding the source code

Before you compile the project, you have to start an H2 database instance. For your convenience, a server is configured in the Data-centric-Applications-with-Vaadin-8/chapter-05 Maven module. You can create a run configuration for the following Maven command or you can run it directly on the command line:

cd Data-centric-Applications-with-Vaadin-8/chapter-05
mvn test exec:java -Dexec.mainClass="packt.vaadin.datacentric.chapter05.jdbc.H2Server"

Once the database is up and running, you can build all the demo applications by executing the following:

cd Data-centric-Applications-with-Vaadin-8
mvn install

All the demo applications are aggregated in a multi-module Maven project, where each module corresponds to one chapter of the book.

This book assumes that you are proficient enough with Maven to follow the example applications of each chapter. If you have no previous experience with Maven or multi-module Maven projects, please spend some time going through the tutorials and documentation at: http://maven.apache.org/guides.

Each chapter's module may contain multiple sub-modules depending on the concepts being explained in that chapter. We will use the Jetty Maven plugin to run the examples. Most IDEs today have good support for Maven. The best way to use this book's code is by importing the Data-centric-Applications-with-Vaadin-8 Maven project into your IDE and creating individual running configurations for each demo application. There are tons of resources online that explain how to do this for the most popular IDEs, such as IntelliJ IDEA, NetBeans, and Eclipse. For example, to run the example application for this chapter in IntelliJ IDEA, create a new running configuration like the following:

Make sure the working directory corresponds to the correct module in the project. Alternatively, you can run the application by executing the following on the command line:

cd Data-centric-Applications-with-Vaadin-8/chapter-01
mvn package jetty:run

This executes the package Maven phase and starts a Jetty server. The application should be available at http://localhost:8080.

So, go ahead! Download the source code, import it into your IDE, and run a couple of examples. Feel free to explore the code, modify it, and even use it in your own projects.

You have been reading a chapter from
Data-Centric Applications with Vaadin 8
Published in: Apr 2018
Publisher: Packt
ISBN-13: 9781783288847
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime