{"id":13656364,"url":"https://github.com/kito99/micro-frontends-demo","last_synced_at":"2025-10-26T06:26:45.192Z","repository":{"id":38695263,"uuid":"209670720","full_name":"kito99/micro-frontends-demo","owner":"kito99","description":"Demo of a micro frontend approach with Web Components. From CodeOne 2019 presentation: Micro Front Ends: Breaking Up the Front-End Monolith ","archived":false,"fork":false,"pushed_at":"2023-01-07T09:53:49.000Z","size":4829,"stargazers_count":32,"open_issues_count":65,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-02T05:05:34.203Z","etag":null,"topics":["angular","microfrontends","microprofile","microservices","webcomponents"],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kito99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-20T00:18:29.000Z","updated_at":"2024-05-19T20:52:56.000Z","dependencies_parsed_at":"2023-02-06T20:45:35.712Z","dependency_job_id":null,"html_url":"https://github.com/kito99/micro-frontends-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kito99%2Fmicro-frontends-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kito99%2Fmicro-frontends-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kito99%2Fmicro-frontends-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kito99%2Fmicro-frontends-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kito99","download_url":"https://codeload.github.com/kito99/micro-frontends-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223936056,"owners_count":17228079,"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","microfrontends","microprofile","microservices","webcomponents"],"created_at":"2024-08-02T05:00:19.154Z","updated_at":"2025-10-26T06:26:40.144Z","avatar_url":"https://github.com/kito99.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# Micro frontends demo\n\n\u003e For a lab version of the same project, see https://github.com/kito99/micro-frontends-lab.\n\nThis is a simple application that demonstrates one approach to creating \n[Micro frontends](https://martinfowler.com/articles/micro-frontends.html): \nusing [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) to integrate different web apps. It was originally \ndemoed at [Oracle CodeOne 2019](https://www.oracle.com/code-one/) in San Francisco as part of the talk \n_Micro Front Ends: Breaking Up the Front-End Monolith_ ([slides](https://virtua.tech/slides/micro-frontends)) \n([mind map](https://www.mindmeister.com/1229898832)) by Kito D. Mann ([@kito99](https://twitter.com/kito99)), \nPrincipal Consultant at [virtua.tech](http://virtua.tech).\n\n![](https://github.com/kito99/micro-frontends-demo/blob/master/microfrontend-demo.gif)\n\nThere are several sub-projects in this repo:\n\n* `orchestrator` - Entry point for the app; simple HTML page that uses the [Vaadin Router](https://vaadin.com/router) \nweb component to dynamically \nload different micro frontends.\n* `app-one` - Simple web app that uses Web Components. Built with `lit-element` and `lit-html`, and uses the cute \n[emoji slider](https://vaadin.com/router) web component.\n* `app-two` - Default app created using the [Angular](http://angular.io) 8 CLI, but packaged as a web component via \n[Angular Elements](https://angular.io/guide/elements).\n* `app-three` - Another Angular 8 created via the CLI and packaged via Angular Elements, but this one uses the [PrimeNG \nTable](https://www.primefaces.org/primeng/#/table) component to talk to the `app-three-service` microservice.\n* `app-three-service` - Simple microservice built using Java and the [MicroProfile](https://microprofile.io/) standard \nrunning on [Payara Micro](https://www.payara.fish/software/payara-server/payara-micro/); returns canned data.\n\n\u003e NOTE: This project does not currently use any polyfills for Web Components or other standards, so evergreen browsers \nare required. (If you want polyfills, you'll need to add them from https://github.com/webcomponents/polyfills)\n\nIt's theoretically possible to include other technologies using this method, such as React via Adobe's \n[react-webcomponent](https://github.com/adobe/react-webcomponent), or [Vue.js](https://vuejs.org/) via \n[vue-web-component-wrapper](https://github.com/vuejs/vue-web-component-wrapper). \n\n## Running \n\nFirst, make sure you have Node (for JS/TS) and Maven (for Java) installed.\n\n1. Download dependencies and build each app as described in the individual README located in the app's folder.\n2. Run `app-three-service` as described in the project's README.\n3. Run a web server from the root folder, and point it to `orchestrator/index.html`. For simplicity, the project\nincludes express, which can be used to serve the app.\n\nTo setup express, install the dependencies:\n    \n```\n npm install \n```\n\nThen run the server:\n\n```\ncd \u003croot folder of this repo\u003e\nnode server.js\n```\nAnd point your browser to the URL indicated (usually `http://127.0.0.1:8000`).\n\n\u003e Technically, all of these apps could run on separate servers (using  \n[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) headers) or be proxied through the main web server.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkito99%2Fmicro-frontends-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkito99%2Fmicro-frontends-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkito99%2Fmicro-frontends-demo/lists"}