How to integrate hilla

How to integrate hilla lit components to vaadinflow application? I would like to create @Endpoints and call them from my LitComponents.

If you go to start.vaadin.com and add one of the “using Hilla” view templates, you get an example of an application using both Flow and Hilla