Skip to content

asifvora/react-mfe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d3ba690 Β· Sep 27, 2021
Sep 3, 2021
Sep 13, 2021
Sep 14, 2021
Sep 2, 2021
May 4, 2021
Sep 17, 2021
Sep 2, 2021
Sep 17, 2021
Sep 27, 2021
Sep 13, 2021
May 6, 2021
Sep 15, 2021
May 4, 2021
Sep 7, 2021

Repository files navigation

React-mfe ✨️

A micro frontend implementation for react js

react-mfe licence react-mfe forks react-mfe stars react-mfe issues react-mfe pull-requests

React Redux TypeScript ReactRouter Storybook lerna style: styled-components Cypress.io

Why?

To scale with multiple teams in a micro services environment

  • More cohesive codebase
  • Simplify maintenance
  • Allows to scale development teams
  • Simplify updates
  • Independent deploy

Read more about Micro frontends

πŸ“– App architecture

  • packages
    • core-ui
    • frontend-components
      • feature-01
      • feature-02
      • feature-03
      • feature-04
      • feature-05
      • ...
    • shared-components

πŸ’» Built With

πŸ› οΈ Installation Steps

Clone the repository ⎘

git clone https://github.com/asifvora/react-mfe.git

Change the working directory πŸ“‚

cd react-mfe

Install dependency 🚚

yarn

Linking dependencies... πŸ”—

yarn bootstrap

Start core-ui app πŸš€

yarn start:core-ui

Start feature-01 app πŸš€

yarn start:feature-01

Build all packages πŸ”¨

yarn build

You are all set! Open localhost:3000 to see the app.

🐳 Docker

Build

docker build -t <docker-image-name> <filepath>
docker build -t react-mfe .
docker image ls

Run a Container

docker run -d -p <Host port>:<Docker port> <docker-image-name>
docker run -d -p 9090:5000 react-mfe
<image-id>

Check the running container

 docker ps -a

πŸ›‘οΈ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

πŸ‘€ Asif Vora

🍰 Contributing

πŸ™ Support

This project needs a ⭐️ from you. Don't forget to leave a star ⭐️