Before you follow the steps below, make sure you have the Lightning-CLI installed globally only your system
npm install -g @lightningjs/cli
-
Install the NPM dependencies by running
npm install
-
Build the App using the Lightning-CLI by running
lng build
inside the root of your project -
Fire up a local webserver and open the App in a browser by running
lng serve
inside the root of your project
During development you can use the watcher functionality of the Lightning-CLI.
- use
lng watch
to automatically rebuild your App whenever you make a change in thesrc
orstatic
folder - use
lng dev
to start the watcher and run a local webserver / open the App in a browser at the same time
Use lng docs
to open up the Lightning-SDK documentation.
Please note that the above instructions will only get the app running locally on your browser. There's a bit more to do if you want to try to run it on webOS. Here are some helpful steps and links if you want to try it out.
- Download the Developer Mode app on your webOS-supported TV.
- Register as a developer at developer.lge.com. Note you need an LG account and an LG developer account for this to work. Whew!
- This article runs through the LG/Ares SDK and how to use it to link up your local system to the TV, enabling the app to run. https://webostv.developer.lge.com/develop/tools/cli-dev-guide#install-the-web-app
Obviously you don't have to do this, but until I get this published this is a way for you to also see it on a TV. Ping me on LinkedIn with any questions and I'll be happy to help!