Skip to content
DocumentationGetting started

Getting started

Install Mokly, describe your catalogue and open your screens in the browser.

Install Mokly

Mokly runs from the repository that holds your components, as a development dependency. Screens written in React also need React and React DOM.

shell
npm install --save-dev @mokly/mokly react react-dom

Next, describe where your screens live, author one screen and open the catalogue in your browser. The six pages under Getting started take you through it in order.

What is here

  • Getting started — Install Mokly, point it at your screens and open the catalogue.
  • Authoring — Describe screens, components, flows, pages and documents in HTML and TypeScript.
  • Catalogue — Browse, search and compare the catalogue, and build the static site.
  • Continuous integration — Publish a catalogue from a workflow on every branch.
  • CLI reference — Every command, the options it takes and what it writes.
  • Mokly Cloud — The hosted service: repositories, publications and access.
  • Reference — The contracts an integrator builds against, from the source.
  • Review and edit — Comments, approvals and the agent beside the screen.