Skip to content

matheusmr13/create-micro-react-app

Repository files navigation

✨ Create Micro React App Build Status Build Status Quality Gate Status

Most complete approach to microfrontend architecture:

If you want to know more about microfrontends and why you should (or shouldn't) use it, check this article.

⚡ Quick Overview

  npx @cmra/cli create my-app
  cd my-app
  npm start

🚀 Demo

Microfrontend Store: Demo

💾 Installing

To install our cli you need Node >= 13.

npm

  npm i -g @cmra/cli

yarn

  yarn global add @cmra/cli

💻 Using it

After installing it, you'll have cmra command available:

  cmra create my-app

It will generate a folder structure like:

  my-app
  ├── package.json
  ├── packages
  |  ├── microfrontend # create-react-app structure folder
  |  |  ├── README.md
  |  |  ├── package.json
  |  |  ├── public
  |  |  |  ├── favicon.ico
  |  |  |  ├── index.html
  |  |  |  ├── logo192.png
  |  |  |  ├── logo512.png
  |  |  |  ├── manifest.json
  |  |  |  └── robots.txt
  |  |  ├── src
  |  |  |  ├── App.css
  |  |  |  ├── App.js
  |  |  |  ├── App.test.js
  |  |  |  ├── index.css
  |  |  |  ├── index.js
  |  |  |  ├── logo.svg
  |  |  |  ├── serviceWorker.js
  |  |  |  └── setupTests.js
  |  |  └── yarn.lock
  |  └── webapp # create-react-app structure folder
  |     ├── README.md
  |     ├── package.json
  |     ├── public
  |     |  ├── favicon.ico
  |     |  ├── index.html
  |     |  ├── logo192.png
  |     |  ├── logo512.png
  |     |  ├── manifest.json
  |     |  ├── microfrontends
  |     |  |  └── meta.json
  |     |  └── robots.txt
  |     ├── src
  |     |  ├── App.css
  |     |  ├── App.js
  |     |  ├── App.test.js
  |     |  ├── index.css
  |     |  ├── index.js
  |     |  ├── logo.svg
  |     |  ├── serviceWorker.js
  |     |  └── setupTests.js
  |     └── yarn.lock
  └── yarn.lock

🔨 Development

First of all, check our contributing guide. If you have any questions just open an issue!

📚 Docs

https://matheusmr13.github.io/create-micro-react-app/docs/


Icon made by Freepik from www.flaticon.com