silverbirder / micro-frontends-sample-code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Micro Frontends Sample Code

Overview

micro_frontends_sample http://team-page.fly.dev

Team Javascript Framework Concept Component Endpoint
Page None Provides the function to integrate all team services. None https://team-page.fly.dev
Search Vue.js Provides the ability to easily find products. Search Box https://team-search.fly.dev
Product React.js Provides a great product appeal. Items https://team-product.fly.dev

Frontend Building Library

It's the Podium.

Podium is a library for building micro frontends.

https://podium-lib.io/docs/podium/conceptual_overview

$ curl https://team-search.fly.dev/manifest.json | jq .
  {
    "name": "search",
    "version": "1.0.0",
    "content": "/",
    "fallback": "",
    "assets": {
      "js": "/search/static/fragment.js",
      "css": ""
    },
    "css": [],
    "js": [
      {
        "value": "/search/static/fragment.js",
        "async": true,
        "defer": true,
        "type": "default"
      }
    ],
    "proxy": {}
  }
$ curl https://team-product.fly.dev/manifest.json | jq .
  {
    "name": "product",
    "version": "1.0.0",
    "content": "/",
    "fallback": "",
    "assets": {
      "js": "/product/static/fragment.js",
      "css": ""
    },
    "css": [],
    "js": [
      {
        "value": "/product/static/fragment.js",
        "async": true,
        "type": "default"
      }
    ],
    "proxy": {}
  }

Develop

Docker Compose

$ docker-compose up
$ docker-compose stop

npm script

$ npm install
$ npm run install:prod
$ npm run start

About

License:MIT License


Languages

Language:JavaScript 85.5%Language:Vue 8.5%Language:Dockerfile 4.5%Language:HTML 1.4%