This is the repository for the StockTracker demo application.
The rest of this README is the original Vaadin starter readme.
This project can be used as a starting point to create your own Vaadin application with Spring Boot. It contains all the necessary configuration and some placeholder files to get you started.
The best way to create your own project based on this starter is start.vaadin.com - you can get only the necessary parts and choose the package naming you want to use.
Import the project to the IDE of your choosing as a Maven project.
Run the application using mvn spring-boot:run
or by running the Application
class directly from your IDE.
Open http://localhost:8080/ in your browser.
If you want to run the application locally in the production mode, run mvn spring-boot:run -Pproduction
.
To run Integration Tests, execute mvn verify -Pintegration-tests
.
With live reload, you can see the results of your code changes immediately. When you edit your Java code and recompile it, the application changes will be automatically reloaded and the browser is refreshed. This is done by leveraging Spring Boot Developer Tools. To be able to see the changes in the browser tab, the page still needs to be reloaded. That can also be automated via a LiveReload browser extension. One such extension for Google Chrome is LiveReload. In Firefox, LiveReload - Web extension can be used. You can find such similar extensions for other major browsers too. These extensions add an icon to your browser next to the address bar. To enable the extension, you should click that icon after you opened your application.
You can find more information at Live Reload in Spring Boot Applications document.
Vaadin web applications are full-stack and include both client-side and server-side code in the same project.
Directory | Description |
---|---|
frontend/ |
Client-side source directory |
index.html |
HTML template |
index.ts |
Frontend entrypoint |
main-layout.ts |
Main layout Web Component (optional) |
views/ |
UI views Web Components (TypeScript / HTML) |
styles/ |
Styles directory (CSS) |
src/main/java/<groupId>/ |
Server-side source directory |
Application.java |
Server entrypoint |
AppShell.java |
application-shell configuration |
- Vaadin Documentation
- Using Vaadin and Spring article
- [Quick Start Guide](https://vaadin.com/docs/v15/flow/typescript/quick-start-guide.html for Vaadin applications.