Simple node app to turn on or off a GPIO pin from a REST url
- Node
Environment variables have defaults that can be found in /config/default.json
When started the application exposes REST endpoints
npm start
To run the tests comment out all const { Gpio } = require('onoff');
elements and associated code as library is only supported
on Rasp Pi OS not Mac OS.
npm test
Running the application in test mode just with the REST endpoints...
NODE_ENV=test npm www