GithubHelp home page GithubHelp logo

juliocesarramirez / microfronten-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 194 KB

This is microfrontend boilerplate with module federation configuration.

JavaScript 44.27% TypeScript 52.25% HTML 3.48%

microfronten-boilerplate's Introduction

Microfrontend App

This project demonstrates a microfrontend architecture using Webpack Module Federation and TypeScript.

Table of Contents

Overview

Microfrontend App is a collection of independent frontend modules that are integrated into a shell application using Webpack Module Federation. Each microfrontend can be developed, built, and deployed independently, allowing for scalability and maintainability.

Features

  • Webpack Module Federation: Integrates multiple microfrontends into a single shell application.
  • TypeScript: Provides type safety and enhances developer productivity.
  • React: Frontend library for building user interfaces.
  • Redux and Redux Saga: State management and side effects handling.
  • ESLint and Prettier: Code linting and formatting for consistent code style.
  • Bootstrap and Custom Styling: Responsive design and consistent styling.

Getting Started

Installation

Clone the repository:

git clone <repository-url>
cd microfrontend-app

Running the App

  1. Install Dependencies: Ensure you have Node.js (>= 18.12.0) and npm installed. Then, install the required dependencies:

    nvm use
    npm install
  2. Start the Development Server: Run the following command to start the development server:

    npm run start

    The application will be available at http://localhost:3000.

Building the App

To create a production build, run:

npm run build

The output will be in the dist directory.

Folder Structure

microfrontend-app/
├── dist/                # Compiled output
├── node_modules/        # Node.js modules
├── public/              # Static assets
├── src/                 # Source files
│   ├── components/      # React components
│   ├── store/           # Store configuration
│   ├── App.tsx          # Main app component
│   ├── bootstrap.tsx    # App bootstrap file
│   └── index.tsx        # Entry point
├── .eslintrc.js         # ESLint configuration
├── .prettierrc          # Prettier configuration
├── package.json         # NPM configuration
├── tsconfig.json        # TypeScript configuration
├── webpack.config.js    # Webpack configuration
└── README.md            # Project documentation

Technologies Used

  • Webpack: Module bundler and build tool
  • React: JavaScript library for building user interfaces
  • TypeScript: Superset of JavaScript with type definitions
  • Redux: State management library
  • Redux-Saga: Middleware for handling side effects
  • ESLint: Tool for identifying and fixing linting issues
  • Prettier: Code formatter
  • Bootstrap: CSS framework for responsive design

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

microfronten-boilerplate's People

Contributors

juliocesarramirez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.