The following repo is designed as a coding/interview challenge specifically for future/current Lightning JS developers. It uses a premade starter lightning application with some aspects missing from the final result. The goal of the exercise will be to address the missing items.
The files that require modification are all within the src
directory. Specifically SearchPage.js
, Tile.js
and api.js
require some modification in order to achieve the final result.
Knowledge of the lightning framework is not required but documentation for the framework can be found here: Lightning Render Engine for reference.
-
Install the NPM dependencies by running
npm install
-
Run the app locally by using
lng dev
ornpm run start
to start the watcher and run a local webserver -
Open
http://127.0.0.1:8080/
in a browser window, refresh page upon each new change
- Interpret keyboard entry - see
SearchPage.js
Challenge 1 in_handleKey
method - Use query string to search an api - see
api/api.js
Challenge 2 - Populate the two provided rows with 5 Tiles each - see
SearchPage.js
Challenge 3populateResults
method - Modify the
Tile.js
file to allow changes to the focused tile's styling - seeTile.js
Challenge 4a & 4b comments