Imploy UI monorepo
- Node > 12
- Yarn > 1
The repository is broken up into 4 main packages, managed using yarn workspaces. You can find these in the packages
directory. These packages are as follows:
Various components (atoms/molecules) that are used in the development of UI's. This package forms the base of the UI providing composable components, form elements, icons, small scope elements.
Various React Context API wrappers
Complex Modules such as Billing, Login modules, basically shared wide scope/opinionated components, that meet some cross-cutting business concern.
- Theme context and other utilities for generating and using the theming capabilities
The UI for Chainsafe Files
You will need a Github Personal Access token with read:package
permissions. This can be obtained here
You then need to add it as environment variable, depending on your OS and shell:
- Edit
~/.bash_profile
, or for zsh~/.zshenv
and add the following lineexport GITHUB_PACKAGES_AUTH_TOKEN="YOUR_TOKEN_HERE"
- Restart your shell and make sure the new variable is loaded,
echo $GITHUB_PACKAGES_AUTH_TOKEN
should print it. - Run
yarn
at the root to install all project dependencies - Run
yarn start:storybook
to start the component storybook
OR - Create a
packages/files-ui/.env
based onpackages/files-ui/.env.example
- Run
yarn start:files-ui
to start the development server.