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 Lightning-CLI installed globally on your systemrequired prerequisites - Node.js , npm, Lightning-CLI

          $ npm install -g @lightningjs/cli


reference image for Lightning-CLI install

Image Added

Build instructions

  • Create Lightning refapp

...

  • dev build

...

    1. pull code from source repo using command $git clone https://github.com/LibertyGlobal/refapp.git
    2. goto refapp directory $cd refapp
    3. install the NPM dependencies by running command $npm install
    4. $./copyAssets.sh
    5. run command $lng dev for testing in browser.

refer below screenshots for reference

Image Added

reference images for build instructions-1

Image Added

reference images for build instructions-2

once npm install complete, you will get message at the end "Do you want us to automatically check for old Lightning-SDK imports and update them in your project files? y/n

press n and hit enter button because on pressing y it gets hanged or stuck, in this case press ctrl+c 


Image Added

reference images for build instructions-3

Image Added

reference images for build instructions-4

Running refapp


Image Added

reference image for running app on browser

  • Create dist (build)

    1. run command $lng dist to make build.

Image Added

reference image for dist creation

Hosting lighting refapp application:

  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 application integration into rdk-generic-hybrid-image-raspberrypi:

...