This repository serves as a template for creating new components in the ClearBlade Intelligent Assets platform. It provides a standardized structure and configuration for developing React-based micro-frontends.
-
Create a new repository from this template:
- In GitHub, on the page for this repository, select
Use this template
->Create a new repository
- Fill out your desired owner and repository name
- The repository's visibility must be set to public
- In GitHub, on the page for this repository, select
-
Repository Naming Rules:
- Standard repository naming convention
-
Once created, clone locally and install dependencies:
npm install --legacy-peer-deps
npm start
- Start MFE servernpm run build
- Build the MFE for productionnpm run build:library
- Build the component librarynpm run build:service
- Build the service
The project structure is similar to any ClearBlade system exported using cb-cli
├── src/ # Services/Libraries source code
├── mfe/ # Micro-frontend source code
├── cb-dev-kit/ # Development kit configuration
├── webpack.config.js # Webpack configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Project dependencies and scripts
This template includes several key dependencies:
- React 17
- Material-UI 4
- TypeScript
- Single-SPA for micro-frontend architecture
- ESLint and Prettier for code quality
For more detailed information about creating components, please visit our IA documentation.
Once your component has been developed, tested and ready to ship, make sure to create a new release of that component by giving it a tag. If no tag is provided, the component wont be added to your IA system.
This project is licensed under the MIT License - see the LICENSE file for details.