Versions Compared

Key

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

 - Node.js , npm, Lightning-CLI should be available in PC

Prerequisites

Before you follow the steps below, make sure you have installed all the required prerequisites - Node.js , npm, Lightning-CLI

...

reference images for build instructions-4

Running refapp

by default vscode launch generated url on chrome browser in dev pc.

reference image for running app on browser

  • Create dist dist (build)

    1. run command $lng dist to make build.

...

reference image for dist creation

Hosting

...

Lighting refapp

...

  1. copy the lighting build app from dist folder.
  2. host build folder into any http server.
  3. test the hosted application in browser with help of url.

Lighting refapp

...

integration

  • Lighting refapp integration into rdk-generic-hybrid-image-raspberrypi:

  1. login to raspberrypi : $ssh root@<<IP address>>
  2. cd /lib/rdk/
  3. add lighting refapp url into referenceApp.sh config file (/opt/residentapp.conf).
  4. need to update startup_app_conf variable

    startup_app_conf=/opt/residentapp.conf

  5. exting url is https://px-apps.sys.comcast.net/lightning_apps/SwitcherApp/dist/index.html in residentapp.conf need to replace with 

    lighting app hosted URL (exmaple http://192.168.0.512:8080)

  6. reboot the box .
  7. lighting application will launch instead of switcher app.

...