All Projects → SAP → Luigi

SAP / Luigi

Licence: apache-2.0
Micro frontend framework

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Luigi

Vgplayer
📺 A simple iOS video player by Vein.
Stars: ✭ 383 (-8.15%)
Mutual labels:  open-source
Triage
Interactive command-line GitHub issue & notification triaging tool.
Stars: ✭ 394 (-5.52%)
Mutual labels:  open-source
Vvvebjs
Drag and drop website builder javascript library.
Stars: ✭ 4,609 (+1005.28%)
Mutual labels:  open-source
Wtfjht
Logging the daily shock and awe in national politics. Read in moderation.
Stars: ✭ 386 (-7.43%)
Mutual labels:  open-source
Espial
Espial is an open-source, web-based bookmarking server.
Stars: ✭ 388 (-6.95%)
Mutual labels:  open-source
Gradle Static Analysis Plugin
Easy setup of static analysis tools for Android and Java projects.
Stars: ✭ 398 (-4.56%)
Mutual labels:  open-source
Raasnet
Open-Source Ransomware As A Service for Linux, MacOS and Windows
Stars: ✭ 371 (-11.03%)
Mutual labels:  open-source
Redrunner
Red Runner, Awesome Platformer Game.
Stars: ✭ 414 (-0.72%)
Mutual labels:  open-source
Mumble
Mumble is an open-source, low-latency, high quality voice chat software.
Stars: ✭ 4,418 (+959.47%)
Mutual labels:  open-source
Wanandroid
🏄 基于Architecture Components dependencies (Lifecycles,LiveData,ViewModel,Room)构建的WanAndroid开源项目。 你值得拥有的MVVM快速开发框架:https://github.com/jenly1314/MVVMFrame
Stars: ✭ 410 (-1.68%)
Mutual labels:  open-source
Laravel Eloquent Uuid
A simple drop-in solution for providing UUID support for the IDs of your Eloquent models.
Stars: ✭ 388 (-6.95%)
Mutual labels:  open-source
I Educar
Lançando o maior software livre de educação do Brasil!
Stars: ✭ 388 (-6.95%)
Mutual labels:  open-source
Arx
ARX is a comprehensive open source data anonymization tool aiming to provide scalability and usability. It supports various anonymization techniques, methods for analyzing data quality and re-identification risks and it supports well-known privacy models, such as k-anonymity, l-diversity, t-closeness and differential privacy.
Stars: ✭ 398 (-4.56%)
Mutual labels:  open-source
Simple Notes
A simple textfield for adding quick notes without ads.
Stars: ✭ 386 (-7.43%)
Mutual labels:  open-source
Open Source Survey
The Open Source Survey
Stars: ✭ 413 (-0.96%)
Mutual labels:  open-source
Linstor Server
High Performance Software-Defined Block Storage for container, cloud and virtualisation. Fully integrated with Docker, Kubernetes, Openstack, Proxmox etc.
Stars: ✭ 374 (-10.31%)
Mutual labels:  open-source
Open Solution Home Credit
Open solution to the Home Credit Default Risk challenge 🏡
Stars: ✭ 397 (-4.8%)
Mutual labels:  open-source
Curriculum
The curriculum of Techtonica, a free tech training and job placement program for women and non-binary adults with low incomes.
Stars: ✭ 414 (-0.72%)
Mutual labels:  open-source
Apm planner
APM Planner Ground Control Station (Qt)
Stars: ✭ 413 (-0.96%)
Mutual labels:  open-source
Text Decorator
Decorate your TextView easily
Stars: ✭ 402 (-3.6%)
Mutual labels:  open-source

Build Status REUSE status

Luigi

Overview

Luigi is a micro frontend JavaScript framework that enables you to create an administrative user interface driven by local and distributed views. Luigi allows a web application to communicate with the micro frontends which the application contains. To make sure the communication runs smoothly, you can easily configure the settings such as routing, navigation, authorization, and user experience elements.

Luigi consists of Luigi Core application and Luigi Client libraries. They establish secure communication between the core application and the micro frontend using postMessage API.

Read the Getting started guide to learn more about micro frontends and the structure of Luigi.

Installation

Follow the instructions in this document to install Luigi Core. Read this document to install the Luigi Client.

Usage

Examples

View the application examples to explore Luigi's features.

Go to the Luigi Fiddle site to see Luigi in action and configure a sample application.

Documentation

For details, see Luigi documentation.

Browser support

If you want to support Internet Explorer 11 in your application, install the @luigi-project/core-ie11 package and update your Luigi imports as follows:

Luigi Core

<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel='stylesheet' href='/luigi-core/luigi-ie11.css'>
    <!-- <link rel='stylesheet' href='/luigi-core/luigi.css'> -->
  </head>
  <body>
    <script type="module" src="/luigi-core/luigi.js"></script>
    <script nomodule src="/luigi-core/luigi-ie11.js"></script>
    <!-- <script src="/luigi-core/luigi.js"></script> -->
  </body>
</html>

Luigi Client

Install the @luigi-project/client-ie11 package and update your Luigi imports as follows:

import {
  linkManager,
  uxManager
} from '@luigi-project/client-ie11';

NOTE: The example applications are not fully compatible with IE11.

Development

Development guidelines for micro frontend developers

For security reasons, follow these guidelines when developing a micro frontend:

  • Make the micro frontend accessible only through HTTPS.
  • Add Content Security Policies (CSPs).
  • Make the Access-Control-Allow-Origin HTTP header as restrictive as possible.
  • Maintain an allowlist with trusted domains and compare it with the origin of the Luigi Core application. The origin will be passed when you call the init listener in your micro frontend. Stop further processing if the origin does not match.

NOTE: Luigi follows these sandbox rules for iframes.

Code formatting for contributors

All projects in the repository use Prettier to format source code. Run the npm install command in the root folder to install it along with husky, the Git hooks manager. Both tools ensure proper codebase formatting before committing it.

Unit tests

To ensure that existing features still work as expected after your changes, run unit tests using the npm run test command in the core folder.

E2E tests

To ensure that existing features still work as expected after your changes, run UI tests from the Angular example application. Before running the tests, start the sample application by using the npm start command in the application folder.

When the application is ready:

  • Run npm run e2e:open in the test/e2e-test-application folder to start tests in the interactive mode.
  • Run npm run e2e:run in the test/e2e-test-application folder to start tests in the headless browser.

Backward compatibility tests

Use these tests to ensure that applications written for previous versions of Luigi still work after Luigi gets updated with npm. Before running the tests, bundle Luigi by running lerna run bundle in the main repository folder.

Install jq using the brew install jq command. It is required for the script to work, however, you can omit it if the command you are using to run your tests is tagged latest.

  • Run npm run test:compatibility in the main repository folder to start regression testing. The system will prompt you to select the previous version.
  • Run npm run test:compatibility -- --tag latest in the main repository folder to start regression testing with the last version preselected.
  • On the CI, run npm run test:compatibility -- --install --tag latest in the main repository folder to install dependencies, bundle Luigi and run the tests with the last version preselected.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].