Skip to content

Example application

This example application is intended to show you how to grant your own apps access to "IIH Essentials".

You will be able to request assets, tags and time series data from IIHE using your own code.

Prerequisites

You must carry out the following steps beforehand:

Building and executing

The example application can be launched both locally and via Docker.

Via Docker

  1. Open the command line in the folder with the package.json file and enter the following command:

    docker-compose up
    

Locally

  1. Open the command line in the folder with the package.json file and enter the following commands:

    npm install #The necessary NodeJS modules are downloaded
    npm run build
    npm run start
    
  2. The example application is configured to run via Docker. For local execution, the IIH Essentials URL (.\client\dataservice-client.ts line 17) must be changed to http://localhost:4203.

Opening the application

Open the UI of the application in the browser https://localhost:5200.