SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Build Skeleton React and UI5 Projects

Create skeleton React and UI5 projects and install Luigi.

Overview

🎓 beginner ⏱ 5 min. User InterfaceBeginnerJavascript

You will learn

  • ✔How to create a skeleton React project
  • ✔How to create a skeleton UI5 project
  • ✔How to add Luigi and other dependencies to your project
Johannes Doberer J Johannes Doberer November 17, 2026
Created on December 10, 2024
Contributors

More from Johannes Doberer

See all 7 tutorials by Johannes Doberer →

Prerequisites

  • It’s recommended to try the simpler examples on GitHub or the Getting Started page before this tutorial.
  • Install Node.js 24.15.0 or newer in the Node.js 24 LTS line. This tutorial uses React 19, React Router 8 and UI5 Web Components React 2. Updating npm alone does not update Node.js.
  • You need to install SAP Fonts.

Steps

Intro

In this tutorial, you will set up the two skeleton projects used throughout the Luigi tutorial series: a React project that hosts the Luigi Core application and a UI5 project for a micro-frontend. You will then add Luigi and the other required dependencies to both.

Step 1 Create React app
—

In this step, you will create a React skeleton project which will be used to create your Luigi app.

  1. Open a Terminal or Command Prompt window and navigate to the space where you want to install the app. Then create a new folder:

    Shell
    mkdir luigi-react-ui5
    cd luigi-react-ui5
  2. Create a new folder to host the React core app:

    Shell
    mkdir react-core-mf
    cd react-core-mf
  3. Download the React example package.json from the fixed Luigi revision below. Keep LUIGI_EXAMPLE_BASE set in this terminal for the subsequent downloads. Install the versions used by this tutorial rather than the latest packages:

    Shell
    LUIGI_EXAMPLE_BASE="https://raw.githubusercontent.com/SAP/luigi/e0dcf1ad945c3c31e90d61b45860dca47a3703d7/core/examples/luigi-example-react"
    curl --fail --location "$LUIGI_EXAMPLE_BASE/package.json" --output package.json
    npm install --save-exact @luigi-project/client@2.33.0 @luigi-project/core@2.33.0 fundamental-styles@0.42.0 @ui5/webcomponents-react@2.28.2 @ui5/webcomponents-fiori@2.28.1
    npm install --save-dev --save-exact style-loader@4.0.0 css-loader@7.1.5 terser-webpack-plugin@5.6.1

    The downloaded manifest specifies React and React DOM 19.2.7 and react-router 8.3.0. Import router components from react-router, not react-router-dom. Keep the generated package-lock.json with your project and use npm ci for subsequent clean installations. The fixed revision also prevents changes on Luigi’s main branch from changing the starting files. ​

  4. The React application will be bundled using Webpack. Download the Luigi Webpack configuration from an existing Luigi example app using the line below:

    Shell
    curl --fail --location "$LUIGI_EXAMPLE_BASE/webpack.config.js" --output webpack.config.js
  5. Next, create the project structure for the React app. Create the following folders:

    Shell
    mkdir -p src/views
    mkdir -p src/assets
    mkdir -p public

    ​

  6. Download the Luigi React app files:

    Shell
    curl --fail --location "$LUIGI_EXAMPLE_BASE/public/luigi-config.js" --output public/luigi-config.js
    curl --fail --location "$LUIGI_EXAMPLE_BASE/src/index.js" --output src/index.js
    curl --fail --location "$LUIGI_EXAMPLE_BASE/src/views/home.js" --output src/views/home.js
    curl --fail --location "$LUIGI_EXAMPLE_BASE/src/views/sample1.js" --output src/views/sample1.js
    curl --fail --location "$LUIGI_EXAMPLE_BASE/src/views/sample1.js" --output src/views/sample2.js
    curl --fail --location "$LUIGI_EXAMPLE_BASE/public/index.html" --output public/index.html
    curl --fail --location "$LUIGI_EXAMPLE_BASE/public/sampleapp.html" --output public/sampleapp.html
  7. Ins​tall and run the configuration:

Shell
npm i
npm run start

​ 8. Stop the development server with Ctrl+C, then move back into the root directory:

Shell
cd ..
Step 2 Create UI5 micro-frontend
+
Step 3 Tutorial navigation
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Create React app 2. Create UI5 micro-frontend 3. Tutorial navigation