Any interactive app can be configured as a Web app. Some additional effort may be required to tailor it.
You must write a Web-specific main. That is where you will tailor the frontend, in order to give it the UI that suits the platform.
The Web-specific main must configure RpcInterfaces in order to access backends and services over the Web. There are several options, depending on how you design and deploy your app:
- Frontend-only app - This style of app uses only pre-existing backends and services. A
uriPrefixis required for configuring each server.
- Simple app - This style of app has its own backend, and the backend serves the frontend. No uriPrefix is required when configuring the app's own backend server. A uriPrefix is required for any other, remote backend server that the app may use.
- Frontend and backend deployed separately - This style of app has its own backend, but the backend and frontend are deployed separately. A
uriPrefixis required for configuring the app's own backend server and for any other server that it may use.
If the app has a custom backend, you must write a Web-specific main to do the following:
- Configure the backend interfaces to serve clients over the Web.
- Write a simple Web server to serve the backend interfaces.
Last Updated: 17 March, 2023