umijs / qiankun
- суббота, 18 апреля 2020 г. в 00:20:38
TypeScript
📦 🚀 Blazing fast, simple and completed solution for micro frontends.
In Chinese traditional culture
qianmeans heaven andkunstands for earth, soqiankunis the universe.
An implementation of Micro Frontends, based on single-spa, but made it production-ready.
As we know what micro-frontends aims for:
Techniques, strategies and recipes for building a modern web app with multiple teams using different JavaScript frameworks. — Micro Frontends
Modularity is very important for large application. By breaking down a large system into individual sub-applications, we can achieve good divide-and-conquer between products and when necessary combination, especially for enterprise applications that usually involve multi-team collaboration. But if you're trying to implement such a micro frontends architecture system by yourself, you're likely to run into some tricky problems:
After solving these common problems of micro frontends, we extracted the kernel of our solution after a lot of internal online application testing and polishing, and then named it qiankun.
Probably the most complete micro-frontends solution you ever met
$ yarn add qiankun # or npm i qiankun -SThis repo contains an examples folder with a sample Shell app and multiple mounted Micro FE apps. To run this app, first clone qiankun:
$ git clone https://github.com/umijs/qiankun.git
$ cd qiankunNow run the yarn scripts to install and run the examples project:
$ yarn install
$ yarn examples:install
$ yarn examples:startVisit http://localhost:7099.
https://qiankun.umijs.org/faq/
https://qiankun.umijs.org/#community