The HiveMQ UI Library is a React component library that provides reusable UI components on top of Chakra UI for HiveMQ applications.
Note: This is a component library meant to be imported and used in other applications, not a standalone web application.
Resources:
- Web Site: hivemq-website
- Community Forum: hivemq-community-forum
- Contribution Guidelines: CONTRIBUTING.md
- License: The source files in this repository are made available under the Apache License Version 2.0.
We use pre-commit to manage the project wide pre-commit-hooks for git.
Please install it using brew (the pip-option is also ok, but you won't end up having to maintain a python-env using brew):
brew install pre-commitThen run from the repo-root the following commands to install the hooks:
pre-commit installInstall the following dependencies to start the development of the project.
| Tool | Description | Link |
|---|---|---|
| PNPM | Node package manager to install frontend dependencies | https://pnpm.io/installation |
| NVM | Node.js version manager | https://github.com/nvm-sh/nvm#installing-and-updating |
Then you can install the node.js version of the project by running
nvm installAfter that you need to install the node_modules of the project by running the following command:
pnpm install --frozen-lockfileThen start the development server by running
pnpm devThis starts Storybook at http://localhost:6006 with hot reload enabled - any changes you make to components will automatically refresh in the browser.
That's it happy development 🎉
Since all dependencies are installed on your machine you can now execute the following commands.
| Command | Description |
|---|---|
pnpm dev |
Start development server with hot reload (Storybook at http://localhost:6006) |
pnpm storybook |
Same as pnpm dev - starts Storybook development server |
pnpm test:unit |
Run all project unit tests |
| Command | Description |
|---|---|
pnpm build |
Build the library for distribution (outputs to dist/) |
pnpm storybook:build |
Build Storybook for static hosting (outputs to storybook-static/) |
| Command | Description |
|---|---|
pnpm lint:check:all |
Check code formatting and linting |
pnpm lint:check:write |
Fix code formatting and linting issues |
pnpm generate:theme |
Generate TypeScript types for Chakra UI theme |
This is a component library, not a standalone web application. After building with pnpm build, the output is JavaScript modules in the dist/ folder that other applications can import.
To preview and interact with the components, use:
pnpm storybookThis starts Storybook at http://localhost:6006, where you can view and test all components interactively.
If you want to contribute to the HiveMQ Extension SDK, see the contribution guidelines.
The HiveMQ UI Library is licensed under the APACHE LICENSE, VERSION 2.0.
A copy of the license can be found here.