PoC to demonstrate a micro-frontend architecture for Daikin energy-management experiences.
layoutexposes common components likeheaderandfooterwidgetsexposes customizable application contentregional-app-1andregional-app-2are host apps that consume shared packagesevacontains another consuming app surfacedocscontains the Docusaurus documentation site for onboarding and implementation guidance
For full setup and implementation guidance, start with docs/docs/get-started/introduction.md.
- Run the docs site locally:
npm run start --prefix docs - Build static docs output:
npm run build --prefix docs - GitHub Pages deployment target for docs is
/docs/(vianpm run deploy-github-pages:docs)
In the root folder, run npm install to download all dependencies.
Then run npm run dev to build and serve all apps simultaneously.
For the ports each app is running on, refer to config.js.
AWS_ACCOUNT_ID: Account ID that owns the ECR repository.AWS_REGION: AWS Region that hosts the ECR repository.CONTAINER_REPOSITORY_ACCOUNT: Account ID for the ECR repository. If the cluster and ECR are in the same account, this can be omitted.CONTAINER_REPOSITORY_REGION: Region for the ECR repository. If the cluster and ECR are in the same region, this can be omitted.
cd deploynpm run generate-test-secrets -- -configName local -playwright -outpath ../module_federation/env/to generate test secretscd ../module_federationecho "LAYOUT_BASE_URL=http://localhost:3001\nWIDGETS_BASE_URL=http://localhost:3002\nREGIONAL_APP_1_BASE_URL=http://localhost:3004\nREGIONAL_APP_2_BASE_URL=http://localhost:3005\nEVA_URL=http://localhost:3006" >> env/local.envto add local base URLsENV=local npm run testto run tests in CLIENV=local npm run test:devto open UI mode