docs

Step 1: Set Up the Initial App

We start by setting up a simple app for this tutorial. The app displays mock data only and mimics real OData back-end calls with the mock server as you have seen in the Walkthrough tutorial.

The structure and data model created in this step will be used throughout the rest of this tutorial. The initial app created in this step will be extended in the subsequent steps to illustrate the navigation and routing features of OpenUI5.


Preview

Initial app with a simple button


Setup

  1. To set up your project for this tutorial, download the files at Navigation and Routing - Step 1.

  2. Extract the downloaded .zip file at the desired location on your local machine.
  3. Open a shell in the extracted folder and execute npm install.
  4. Execute npm start to start the web server and to open a new browser window hosting your newly created index.html.

You should have the same files as displayed in the following figure:

Folder structure with downloaded files

Note:

The content of the localService folders will not be changed in this tutorial. The i18n folder will always contain the i18n.properties file only. Therefore, we will show both subfolders collapsed in the following steps.


The Initial App

With the downloaded coding, you have an initial app with recommended settings that provides the basic features of an OpenUI5 app:

So far we have a basic app that does not really have any navigation or routing implemented. This will change in the next steps when we implement our first navigation features.

Parent topic:Navigation and Routing Tutorial

Previous:Step 2: Enable Routing