Example Forge app that illustrates the usage of the Forge tRPC integration.
The project is configured with Nx and the Nx Forge plugin.
Install project dependencies by running npm install
. After that, build the app using npx nx build forge-app
before you proceed with the initial registration of the Forge app.
Follow the steps on initial build and registration as described in the Nx Forge plugin docs.
Do not forget to copy the generated app id from
dist/apps/forge-app/manifest.yml
toapps/forge-app/manifest.yml
once you have completed the registration step.
To build the app run the following command:
nx build forge-app
This will also build dependent Custom UI projects if they contain changes. The build result will be generated in the dist/
folder.
To deploy the app after a build run:
nx deploy forge-app
This will run the Forge CLI deploy command on the build output of the forge-app
project.