{"id":19902227,"url":"https://github.com/bndynet/micro-frontends-nx","last_synced_at":"2026-04-18T11:34:18.638Z","repository":{"id":61532001,"uuid":"536021450","full_name":"bndynet/micro-frontends-nx","owner":"bndynet","description":"Micro Frontends with PrimeNG UI","archived":false,"fork":false,"pushed_at":"2022-12-08T06:32:15.000Z","size":7488,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T21:17:05.587Z","etag":null,"topics":["angular","mfe","module-federation"],"latest_commit_sha":null,"homepage":"https://mfe.bndy.net","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bndynet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-13T08:03:45.000Z","updated_at":"2023-08-25T03:19:10.000Z","dependencies_parsed_at":"2023-01-24T22:46:37.330Z","dependency_job_id":null,"html_url":"https://github.com/bndynet/micro-frontends-nx","commit_stats":null,"previous_names":["bndynet/micro-frontends-nx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndynet%2Fmicro-frontends-nx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndynet%2Fmicro-frontends-nx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndynet%2Fmicro-frontends-nx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndynet%2Fmicro-frontends-nx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bndynet","download_url":"https://codeload.github.com/bndynet/micro-frontends-nx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329419,"owners_count":19944985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","mfe","module-federation"],"created_at":"2024-11-12T20:17:27.258Z","updated_at":"2025-11-25T11:01:38.253Z","avatar_url":"https://github.com/bndynet.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro-Frontend for Angular\n\n\u003ca href=\"https://nx.dev\" taget=\"_blank\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png\" width=\"250\"\u003e\n\u003c/a\u003e\n\n## Adding capabilities to your workspace\n\nNx supports many plugins which add capabilities for developing different types of applications and different tools.\n\nThese capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.\n\nBelow are our core plugins:\n\n- [React](https://reactjs.org)\n  - `npm install --save-dev @nrwl/react`\n- Web (no framework frontends)\n  - `npm install --save-dev @nrwl/web`\n- [Angular](https://angular.io)\n  - `npm install --save-dev @nrwl/angular`\n- [Nest](https://nestjs.com)\n  - `npm install --save-dev @nrwl/nest`\n- [Express](https://expressjs.com)\n  - `npm install --save-dev @nrwl/express`\n- [Node](https://nodejs.org)\n  - `npm install --save-dev @nrwl/node`\n\nThere are also many [community plugins](https://nx.dev/community) you could add.\n\n## Generate an application\n\nRun `nx g @nrwl/react:app my-app` to generate an application.\n\n\u003e You can use any of the plugins above to generate applications as well.\n\nWhen using Nx, you can create multiple applications and libraries in the same workspace.\n\n## Generate a library\n\nRun `nx g @nrwl/react:lib my-lib` to generate a library.\n\n\u003e You can also use any of the plugins above to generate libraries as well.\n\nLibraries are shareable across libraries and applications. They can be imported from `@mfe/mylib`.\n\n## Development server\n\nRun `nx serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.\n\n## Build\n\nRun `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).\n\nRun `nx affected:test` to execute the unit tests affected by a change.\n\n## Running end-to-end tests\n\nRun `nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).\n\nRun `nx affected:e2e` to execute the end-to-end tests affected by a change.\n\n## Understand your workspace\n\nRun `nx graph` to see a diagram of the dependencies of your projects.\n\n\n## ☁ Nx Cloud\n\n### Distributed Computation Caching \u0026 Distributed Task Execution\n\n\nNx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.\n\nTeams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nx’s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.\n\nVisit [Nx Cloud](https://nx.app/) to learn more.\n\n## Other useful commands\n\n```shell\nnx g @nrwl/angular:remote todo --host=host\nnx g @nrwl/angular:app my-app\nnx g @nrwl/angular:component my-component --project=my-app\nnx g @nrwl/angular:lib ui\nnx g @nrwl/angular:ngrx auth --module=libs/data/src/lib/data.module.ts --no-interactive\n```\n\n## Configurations\n\n### Apps - workspace.json\n\n```json\n{\n  \"projects\": {\n    \"host\": \"apps/host\",\n    \"host-e2e\": \"apps/host-e2e\",\n    \"about\": \"apps/about\",\n    \"about-e2e\": \"apps/about-e2e\"\n  }\n}\n```\n\n### Shared Libraries - tsconfig.base.json\n\n```json\n\"paths\": {\n  \"@mfe/ui\": [\"libs/ui/src/index.ts\"],\n  \"@mfe/data\": [\"libs/data/src/index.ts\"],\n  \"@mfe/utils\": [\"libs/utils/src/index.ts\"]\n}\n```\n\n### Apps in Host - apps/host/project.json\n\nThe **implicitDependencies** node will determine which remotes are compiled by `npm run build` or `nx build`.\n\n```json\n{\n  \"implicitDependencies\": [\"pages\", \"docs\", \"login\", \"shop\"],\n  \"targets\": {\n    \"build\": {\n      \"configurations\": {\n        \"production\": {\n          \"baseHref\": \"/mfe/\"\n        }\n      }\n    }\n  }\n}\n```\n\n### Build - apps/host/webpack.prod.config.js\n\nThe following configurations about remotes have be moved to **apps/host/src/assets/module-federation.manifest.json** for supporting the dynamic federation.\n\n```js\nconst baseHref = '/mfe/';  // here need to sync with node `baseHref` of ./project.json\nmodule.exports = withModuleFederation({\n  ...config,\n  remotes: [\n    ['pages', `${baseHref}apps/pages`],\n    ['docs', `${baseHref}apps/docs`],\n    ['login', `${baseHref}apps/login`],\n    ['shop', `${baseHref}apps/shop`],\n  ],\n});\n```\n\n## Others\n\n- **/build-info.json** to view the build infomations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbndynet%2Fmicro-frontends-nx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbndynet%2Fmicro-frontends-nx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbndynet%2Fmicro-frontends-nx/lists"}