Proof of concept for micro-frontend architecture using single-spa.js.
This project uses Lerna to manage the monorepository.
You must have yarn ^1.22
installed in your local environment.
- Fork & clone this repository
- Go into the project folder
- Type
yarn && yarn bootstrap
- Run
yarn start:microfrontend
to start the microfrontend architecture in dev mode (with hot reload)
Run yarn start:microfrontend
to start the microfrontend architecture in dev mode (with hot reload).
This command will run all the projects which :
- Has a name that start with
microfrontend-
in package.json - Contains the
start
script in package.json
Projects :
- wrapper (React app): the micro-frontend wrapper which glue the different frontend together
- nav (React app): navigation links used to navigate between micro-frontend
- home (Vue app)
- login (Vue app)
- 404 (Vue app)