Skip to content

A project have many projects with multi framework like Solidjs, Vuejs, Reactjs, Angular, Svelte,....

Notifications You must be signed in to change notification settings

tona3922/micro-frontend-multi-framework-boilerplate

 
 

Repository files navigation

Micro frontend app boilerplate

Logo

Key concepts:

  • Web component
  • Shadow root
  • Module federation

How to use:

Start each micro frontend projects:

Go to folder of each project you can run

  pnpm install && pnpm start
  yarn install && yarn start
  npm install && npm start

Start or build all micro frontend projects:

Project use concurrently to run many script. You can check config in ./concurrently.js From root path you can run

  pnpm serve
  yarn serve
  npm run serve
  pnpm build
  yarn build
  npm run build

Assets:

I setup a Nodejs/Express project at ./share/assets/app.js. You need add your asset files of each project in specify folder Example: ./share/assets/images/solid-about.

Why we can not use asset files directly from project?

Because if we expose a web component and use it from another shell project. The shell project can not accessible to the asset files from micro frontend project by other origin url like below:

micro_url/assets/image.png => shell/assets/image.png

Frameworks supported & default projects:

I config/setup default projects for each supported framework. You need follow config/setup from specify project folder.## Supported frameworks:

Support frameworks(future):

Features(future):

Store management:

  • Rxjs
  • Setup in ./share/store

Design architecture:

Logo

Support

For support, email quangnv1311@gmail.com or create an issue in this repo.

About

A project have many projects with multi framework like Solidjs, Vuejs, Reactjs, Angular, Svelte,....

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.0%
  • JavaScript 21.8%
  • HTML 9.3%
  • Vue 5.5%
  • Svelte 4.1%
  • CSS 1.3%