This app was created to be used during online Lightning training sessions. The goal is to learn the different parts of Lightning while following along the development of this app.
You can find the other app (game) that we've build during the online session here. Router example app can be found here
Feel free to ask them at: https://forum.lightningjs.io/
Before you follow the steps below, make sure you have the Lightning-CLI installed globally only your system
npm install -g WebPlatformForEmbedded/Lightning-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.