Code Monkey home page Code Monkey logo

micro-frontend-poc-2's Introduction

Shared App Shell, React and Legacy apps Example

This example demos a basic host application loading remote component.

  • shell is the App Shell - Share main Navigation
  • app1 - Standalone application - Contain React example
  • app2 - Standalone application - Contains Ajax, Iframe, SSR examples

Running Demo

  • npm install
  • npm run start

This will build all the apps shell, app1, app2 on different ports as shown below

Production mode

In case where you would like consume remote host instead of locale host you have to update the .env files.

Example: Having Shell in a develop mode but App1 and App2 in a remote mode.

In app1/.env, app2/.env and shell/.env

  • Comment: SHELL_URL=http://localhost:3000
  • Uncomment: SHELL_URL=https://poc-microfrontend-shell.herokuapp.com

micro-frontend-poc-2's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.