Microfrontend is ongoing concept, several methods are developed to achieve this. My approach is to deploy each page or services as code in a cdn. Much like jquery where browser load the jquery and execute the code on runtime
There are 3 folders here.
- S3_BUILD_FILES will play role as S3, I decide not to include real S3 to keep everything simple.
- Express, this will be the main server to load the template, and any other services
- Services, in this folder there are developmennt code for each services for each page.
- clone the repo
cd micro-frontend
npm install
node installModules.js
to install all dependencies on each servicesnode buildAndDeploy.js
to build and deploy all React pages to "S3" (which is actually just another folder on this repo)`
cd express && npm install
to install all dependencies on express.jsnode ./bin/www
to run the server- open your browser to
localhost://3002
- Vidy Alfredo - Initial work - lambdaAgent
This project is licensed under the MIT License - see the LICENSE.md file for details