Loading...
Loading...
Scaffold a new DataHub Micro Frontend (MFE) app with all boilerplate files. Use when the user wants to create a new micro frontend, MFE, remote app, or Module Federation app for DataHub.
npx skill4agent add datahub-project/datahub-skills datahub-mfe-create-app| 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 laterapp_nameapp_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}}package.jsonwebpack.config.jssrc/mount.tsxsrc/index.tsxsrc/App.tsxtsconfig.jsonpublic/index.htmlcdcd __APP_DIR__
npm install
npm starthttp://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