qiankun 传统项目配置_GitHub - wxingheng/qiankun: qiankun 完整尝试, 前端微服务 + node 部署 主项目(js) + 子项目(vue)+ 子项目(rea...

qiankun(乾坤)

In Chinese traditional culture qian means heaven and kun stands for earth, so qiankun is the universe.

An implementation of Micro Frontends, based on single-spa, but made it production-ready.

🤔 Motivation

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:

In what form do sub applications publish static resources?

How does the main application integrate individual sub-applications?

How do you ensure that sub-applications are independent of each other (development independent, deployment independent) and runtime isolated?

Performance issues? What about public dependencies?

And so on...

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🧐.

📦 Installation

$ yarn add qiankun # or npm i qiankun -S

📖 Documentation

💿 Getting started

This 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 qiankun

Now run the yarn scripts to install and run the examples project:

$ yarn install

$ yarn examples:install

$ yarn examples:start

Visit http://localhost:7099.

✨ Features

📱 Technology Agnostic

💪 HTML Entry Access Mode

🛡 Style Isolation

🧳 JS Sandbox

⚡ Prefetch Assets

🔌 Umi Plugin Integration

🎯 Roadmap

Parcel apps integration (multiple sub apps displayed at the same time, but only one uses router at most)

Communication development kits between master and sub apps

Custom side effects hijacker

Nested Microfrontends

❓ FAQ

👬 Community

🎁 Acknowledgements

single-spa What an awesome meta-framework for micro-frontends!

import-html-entry An assets loader which supports html entry.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值