Export/Package Vaadin 应用程序

Export/Package Vaadin Application

我希望能够与其他人共享我的应用程序,但不知道如何打包/导出它以便其他人也可以使用它。我知道我可以使用它的 jar,但这需要使用一些命令提示符。我如何正确导出以使其 运行 作为桌面 app/web 应用程序?

Web 应用程序框架

Vaadin 是 framework for building web apps。使用该框架创建的应用程序应该通过 Internet 分发(可通过 Web 浏览器访问)。

简而言之,过程可以描述为:

  1. 应用程序开发完成后,应将其部署到 Servlet container, such as Tomcat, Jetty, and so on. Application should be packaged in production mode. This ensures minification and bundling of the front-end resources. You end up with an artifact to deploy, either a WAR file or an EAR 文件中。
  2. 获取网络或互联网上的服务器。任何一个:
    • 从托管服务提供商处购买 space,例如 Heroku or DigitalOcean
    • 提供您自己的服务器硬件。
  3. 如果没有,请安装 Tomcat。
  4. Web 容器启动后,您的用户将可以通过 IP address your server has. In case you want to have a dedicated name, you can buy a domain name.
  5. 使用您的应用程序

渐进式 Web 应用程序 (PWA)

另一方面,您可以将 Web 应用程序开发为 progressive web application (PWA). Still, the application runs in the browser, but an icon prompt for installing software will be added to your main page(in the browser). A user can click it and the application will be installed. But to do that you have to follow the requirements listed here : Application installation requirement

但是,如果您想创建本地安装的应用程序,Vaadin 通常不是合适的工具。我也想知道,您在哪里找到可以安装的信息? :)