Type-safe server access from TypeScript to Java (REST made easy)

preview_player
Показать описание
Vaadin's new endpoint feature builds on standard REST. It adds developer convenience and security with automatic JavaScript to TypeScript type generation and async TypeScript methods for calling the server. Full-stack type safety and autocomplete everywhere help you code faster and make fewer mistakes. This example uses a SpringBoot backend and Vaadin 17 with LitElement based client-side views.

Shortcuts:
0:00 - Intro
1:02 - Creating the data model in Java (POJO)
1:36 - Defining an endpoint in Java (generates TS types, and type-safe methods to access the server through REST)
3:37 - Importing and using generated TypeScript types
4:07 - Fetching data from the server using async/await
5:50 - Posting data to the server with async/await

Рекомендации по теме
Комментарии
Автор

This is amazing. What a great toolset. I am blown. I found and came to your channel just to learn web components and I found a mature brilliantly architected full stack toolset. Wow.

miklosnemeth
Автор

Have you tried to use Protocol Buffers to sync the signatures?

Oswee
Автор

Do you think Vaadin 17 is production ready?

JetBeray