lowdefy/packages/renderer/README.md
2021-02-22 13:06:48 +02:00

1.4 KiB

@lowdefy/renderer

The Lowdefy renderer is the main part of the Lowdefy web client.

It has the following responsibilities:

  • It contains the Graphql client
  • It contains the the router
  • It creates Lowdefy contexts, from @lowdefy/engine
  • It controls component layout using @lowdefy/layout
  • It loads blocks using webpack module federation.
  • It rerenders blocks when they should update.

A Lowdefy server serves a lightweight shell, that loads the renderer using module federation.

Running a development server

  • Run a Lowdefy development server using @lowdefy/server-dev.
  • Run the dev server using yarn start.
  • The renderer will be hosted at port 3001, but the Lowdefy app will be served from port 3000 by the development server.
  • If changes have been made in any dependencies (like @lowdefy/engine), they need to be built using yarn build, and the server restarted.

More Lowdefy resources

Licence

Apache-2.0