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 August 21, 2026
Created by December 10, 2024
Contributors

More from Johannes Doberer

See all 7 tutorials by Johannes Doberer →

Prerequisites

Prerequisites

  • It’s recommended to try the simpler examples on GitHub or the Getting Started page before this tutorial.
  • You need to install Node.js. If you already have an old version installed on your machine, please run npm install npm@latest -g.
  • You need to install SAP Fonts.

Steps

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 file containing minimal dependencies required for a React app. Next, install styling libraries to handle CSS files, as well as Fundamentals and React web components packages.

Shell
curl https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/package.json > package.json
npm install fundamental-styles @ui5/webcomponents-react --save
npm install style-loader css-loader --save-dev

​ 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 https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/webpack.config.js > webpack.config.js
  1. 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

  2. Download the Luigi React app files:

    Shell
    curl https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/public/luigi-config.js > public/luigi-config.js
    curl https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/src/views/home.js > src/views/home.js
    curl https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/src/views/sample1.js > src/views/sample1.js
    curl https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/src/views/sample1.js > src/views/sample2.js
    curl https://raw.githubusercontent.com/SAP/luigi/main/core/examples/luigi-example-react/public/index.html > public/index.html
    curl https://github.com/luigi-project/luigi/blob/main/core/examples/luigi-example-react/public/sampleapp.html > public/sampleapp.html
  3. Ins​tall and run the configuration:

Shell
npm i
npm run start

​ 8. Move back into the root directory:

Shell
cd ..
Step 2 Create UI5 micro-frontend
+

Resources

Discussion

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

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