Loading...
Loading...
Compare original and translation side by side
| Question | ID | Options |
|---|---|---|
App name (kebab-case, e.g. | | |
| Brief description of what the app does | | |
| Dev server port | | |
| Does the app need to call the DataHub GraphQL API? | | |
app_nameapp_descN/A - I'll fill it in later| 问题 | ID | 选项 |
|---|---|---|
应用名称(短横线命名法,例如 | | |
| 应用功能简要描述 | | |
| 开发服务器端口 | | |
| 应用是否需要调用DataHub GraphQL API? | | |
app_nameapp_descN/A - 我稍后填写app_nameapp_nameapp_nameteam-dashboardteam-dashboard-mfe/-mfeMF_NAMEMFEteamDashboardMFEteam-dashboard-mfeTeam Dashboardapp_nameteam-dashboardteam-dashboard-mfe/-mfeMF_NAMEMFEteamDashboardMFEteam-dashboard-mfeTeam Dashboarddatahub-web-react/| Placeholder | Value |
|---|---|
| Directory name |
| Package name |
| User's description |
| Dev server port |
| Module Federation name (camelCase + MFE) |
| Title-cased label |
| |
needs_graphqlwebpack.config.js{{GRAPHQL_PROXY}}datahub-web-react/| 占位符 | 取值 |
|---|---|
| 目录名称 |
| 包名称 |
| 用户提供的描述 |
| 开发服务器端口 |
| Module Federation名称(驼峰命名 + MFE) |
| 首字母大写的标签 |
| |
needs_graphqlwebpack.config.js{{GRAPHQL_PROXY}}package.jsonwebpack.config.jssrc/mount.tsxsrc/index.tsxsrc/App.tsxtsconfig.jsonpublic/index.htmlpackage.jsonwebpack.config.jssrc/mount.tsxsrc/index.tsxsrc/App.tsxtsconfig.jsonpublic/index.htmlcdcd __APP_DIR__
npm install
npm startcd __APP_DIR__
npm install
npm starthttp://localhost:<PORT>/remoteEntry.jshttp://localhost:<PORT>/http://localhost:<PORT>/remoteEntry.jshttp://localhost:<PORT>/Your MFE app is running! To integrate it with DataHub, use the datahub-mfe-configure-app skill — it will walk you through adding this app to the DataHub frontend config so it appears atand optionally in the nav sidebar./mfe/<path>
Created __APP_DIR__/ with 7 files:
package.json — dependencies and scripts
webpack.config.js — Module Federation + dev server
src/mount.tsx — mount() contract for DataHub
src/index.tsx — standalone dev entry point
src/App.tsx — starter React component
tsconfig.json — TypeScript config
public/index.html — dev HTML shell
Module Federation name: __MF_NAME__ ← use this as "MFE app name" in datahub-mfe-configure-app
Remote entry URL: http://localhost:__PORT__/remoteEntry.js
Module path: __MF_NAME__/mount你的MFE应用已运行!要将其与DataHub集成,请使用datahub-mfe-configure-app技能——它将引导你将此应用添加到DataHub前端配置中,使其在路径下显示,并可选择添加到导航侧边栏。/mfe/<path>
已创建 __APP_DIR__/ 目录及7个文件:
package.json — 依赖项与脚本
webpack.config.js — Module Federation + 开发服务器配置
src/mount.tsx — 供DataHub调用的mount()契约
src/index.tsx — 独立开发入口文件
src/App.tsx — 初始React组件
tsconfig.json — TypeScript配置
public/index.html — 开发用HTML外壳
Module Federation名称: __MF_NAME__ ← 在datahub-mfe-configure-app中用作“MFE应用名称”
远程入口URL: http://localhost:__PORT__/remoteEntry.js
模块路径: __MF_NAME__/mount