Sample Lightning app using TMDB for backend
Get an api key from TMDB API
and put the key in src/api/key.js
with export default 'KEY_VALUE'
git clone git@github.com:ComcastSamples/lightning-ui-tmdb.git
cd lightning-ui-tmdb
npm install -g @lightningjs/cli
npm i
npm start
Lightning Core | Lightning SDK | Lightning CLI | Lightning UI | Jest |
-
Install node.
The build image is based on latest LTS. It is strongly recommended that all developers use the same version to avoid inconsistencies between libraries. Using NVM (Node Version Manager) is an easy way to switch between Node versions.
Docs and Installation Instructions on Github.
Examples:
nvm install lts/*
After installing, tell NVM to use that version:
nvm use lts/*
-
Install dependencies:
npm i
-
Start the server:
Development
npm start
This should point your browser to http://127.0.0.1:8080/#home.
If you make code changes, the app will update and refresh using lng dev server.