This is a sample 'monorepo' (also it can be use with multirepo) to demonstrate an microfrontend application
using Webpack v4, react, react-app-rewired and material-ui.
Easy to use:
On root directory use these commands:
npm installto install lerna (the repo manager)npm run bootstrapthis would install dependencies for all packages with the help of lerannpm run buildthis would build all projectsnpm run startthis would run project in development modenpm run publishthis would copy files to production foldernpm run start:prodthis would run the application that were build at the previous stepnpm run cleanthis would clean repository to a fresh start
if dependencies didn't installed by bootstrap command (because of low node version) then use this:
npm run initthis would run npm install on all packages
- install dependencies for all projects
- add rewired configs
- run the micro frontend project with configs
- Show the component of the stock!
- add the page for place order (simple one)
- add redux middleware`
| request | status | description |
|---|---|---|
| Build run | done | run build on "/", run publish on "/", run start on "/output" |
| Messaging Hook | done | a simple package to communicate through projects |
| Auth hook | done | now the login (in another package) is integrated with the container |
| Theme Hook | idle |