Bootstrapper for progressively loading UI modules dynamically.
Live Demo:
https://loader.platform.uiharness.com
Setup
yarn add @platform/ui.loader
Sample
Sample UI
To run the sample within UIHarness:
yarn start
The UI entry point to start exploring from is at /src/sample/entry.tsx
(see uiharness.yml
).
Sample Server
To bundle and test using @platform/react.ssr ensure you have a .env
file in the root of the project with S3 connection details configured within sample.server/ssr.yml
# .env
SPACES_KEY="..."
SPACES_SECRET="..."
ensure node modules are installed within the sample server folder:
cd sample.server
yarn
Bundle, deploy and release:
yarn ssr bundle
# ... follow prompts ...
yarn ssr release
# ... follow prompts ...
Run the production server locally:
yarn watch
For more details on how to operate the SSR server see @platform/react.ssr