Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page and the pages below are describing the development of an ODLUX Web application.

Further desciptions are:

Children Display

Code location and versions

The ODLUX is part of SDN-R reladed feature. You can find the code in gerrit in the ccsdk/feature repository in /sdnr/wt/odlux (https://gerrit.onap.org).

The feature is part of SDNC/oam and can be installed and started by SDNRWT feature.

The node, yarn and lerna versions used are:

Code Block
<nodeVersion>v8.10.0</nodeVersion>
<yarnVersion>v1.12.3</yarnVersion>
<arguments>add lerna@3.13.1 -W --exact</arguments>

Tree:

Code Block
/sdnr/wt/odlux$ tree -L 2
.
├── apps
│   ├── apiDemo
│   ├── app-feature
│   ├── app-installer
│   ├── configurationApp
│   ├── connectApp
│   ├── demoApp
│   ├── faultApp
│   ├── helpApp
│   ├── inventoryApp
│   ├── maintenanceApp
│   ├── mediatorApp
│   ├── minimumApp
│   └── performanceHistoryApp
├── core
│   ├── features
│   ├── installer
│   ├── model
│   ├── pom.xml
│   ├── provider
├── framework
├── jest.json
├── lerna.json
├── LICENSE
├── package.json
├── pom.xml
├── README.md
└── yarn.lock

To be translated (wink)

Eigene Anwendung erstellen

Kopieren der Schablone

Zur Zeit gibt es noch keine automatisierte Schablone oder Maven Artefakt Vorlage, die automatisch eine neue Anwendung erstellt. Aus diesem Grund ist der einfachste Weg, die Muster App demoApp unter apps zu kopieren.

Anschließend sind die folgenden Anpassungen vorzunehmen.

  1. Mindestens Name, Version und Beschreibung in der Datei packages.json anpassen : "name": "@odlux/demo-app", H> Hinweis: Anstelle von Großbuchstaben nur Bindestrich Buchstabe verwenden. demoApp wird zu demo-app.
  2. Datei webpack.config.js prüfen ob alle Backend Pfade koniguriert sind (siehe Anpassen der lokalen Umgebung)
  3. Name des Modules in der Webpack-Config anpassen (demoApp). Dieser wird gefolgt von dem Pfad zu der Einstiegsdatei (./plugin.tsx).

...