Skip to Content

Introduction to Luigi

test
0 %
Introduction to Luigi
Details

Introduction to Luigi

November 12, 2020
Created by
November 12, 2020
Learn about the basic architecture and terminology of the Luigi micro-frontend framework, and learn what you will build in the next tutorial steps.

You will learn

  • What micro-frontends are
  • What the Luigi project is
  • Luigi terminology


Step 1: What are micro-frontends?

Micro-frontends are often called “microservices for the front-end”. They allow you to break down large monolith front-ends into independent, scalable, individual parts which work together. Micro-frontend architecture is especially useful for complex products or companies with many teams and can help you create consistent web applications.

Watch this video which explains the basics of micro-frontend architecture and how it can be implemented with Luigi:

Log on to answer question
Step 2: What is Luigi?

Luigi is an open source micro-frontend framework written in Svelte. It allows you to create a consistent user interface and navigation, while also offering additional features to make development easier. Its appearance is based on Fundamentals Library Styles. Luigi is technology agnostic, allowing you to build your app and add micro-frontends to it using React, Angular, UI5, or any other technology.

Luigi Fiddle is a test playground where you can get a feel for Luigi.

This diagram portrays the basic architecture of Luigi:

Luigi architecture
Log on to answer question
Step 3: Luigi terminology

This is a small list of Luigi terms that will be helpful when doing the tutorial:

  • Luigi Core - refers to the main application inside which a micro-frontend is displayed. It includes the top and side navigation and all other settings related to the main application.
  • Luigi Client - a term covering all micro-frontend-related settings offered by Luigi. Micro-frontends are configurable via the Luigi Client API.
  • Parameters - parameters are the elements used to configure your Luigi application. Read the Luigi documentation for a full list of navigation, authorization, and general settings parameters.
  • Navigation nodes - the individual links of the side navigation in Luigi.
  • Contexts - contexts are Luigi parameters which allow you to pass objects to the micro-frontend.
  • Views - another name for micro-frontends.
Which part of the application can you configure using Luigi Client?
×
Step 4: What you will build

In the subsequent tutorials, you will create an application with Luigi from scratch. It will be based around the idea of a web shopping platform and it will include additional features such as localization for displaying the website in English and German.

The app consists of three main parts:

  1. Luigi Core app built using React: the “main app” which houses the micro-frontends and includes the top and side navigation that stays consistent no matter which sub-page of the app you navigate to.

  2. Micro-frontends built using React: they include the homepage, a “Products” page, and a “Product Detail” list with information on each product.

  3. Micro-frontend built using UI5: an “Order History” page showing the quantity and price of products that were purchased.

In the end, the homepage for your finished app should look like this:

Luigi shopping app

If you need help with the tutorials:

Log on to answer question

Next Steps

Back to top