1Lua Interpreter 2===== 3 4The Lua Interpreter is a web-based IDE tool that can run Lua scripts with the specific Android Auto telemetry callbacks. 5 6## Prerequisites 7*** 8Install the required node dependencies using npm with 9``` 10sudo apt install nodejs 11npm install 12``` 13 14Install Bazel with 15``` 16sudo apt install bazel 17``` 18 19Change the LUA_SRC inside the WORKSPACE file to point to the directory containing the headers 20of the Lua C API which should be in $ANDROID_BUILD_TOP/external/lua/src. 21 22## Running 23*** 24Run the following commands on the command line to start the server: 25``` 26npm run build; bazel run server 27``` 28 29Open the link provided from starting the server to access the tool (the link is accessible from the terminal window). 30 31## Testing 32*** 33The following commands assume you are at the root directory. 34 35To test everything, run: 36``` 37bazel test --test_output=all //tests:lua_interpreter_tests 38``` 39 40To test the server, run: 41``` 42bazel test --test_output=all //tests:app_test 43``` 44 45To test the Lua Engine, run: 46``` 47bazel test --test_output=all //tests:lua_engine_test 48``` 49