based on (https://github.com/IainIsCreative/react-johnny-five-traffic-lights) thx to the author
A simple project involving the use of Johnny-Five and React to control a set of servoMotor
- RaspBerry Pi
- 1 ServoMotor (or more with arduino)
- 3 coloured jumper cables (5 black jumper cables for ground connection)
You can use NPM or Yarn to install and use the application, though I recommend yarn, it's pretty good for dependency management.
You can do npm install
or yarn install
to download all the app's dependencies.
There are various commands you can use to work the app, from building, to development, to testing. Again, you can use Yarn or NPM to run the app.
start
— Start the app Server (note: runbuild
first!)build
— Build the app for a production environmentdev-start
— Start the app server under the development environmentdev-server
— Runs the Webpack development server for the client-side React appstyles
— Build the Application styles (uses PostCSS)test
— Runs ESlint and Flow to check the code for issues.