Spins up a webserver on http://localhost:3000. Lights up the LED for 1 second for every request and performs a POST request on button press.
- Arduino (Nano)
- breadboard
- jumper wires
- 1x red LED
- 1x 220Ω resistor (Red-Red-Brown)
- 1x 10kΩ resistor (Brown-Black-Orange)
- 1x button
- Update the code in
webserver/index.js
by changingPOST_URL
to a valid URL. For example a RequestBin - Create the wire up setup shown above
- Connect Arduino to your laptop
- Run
npm run webserver
- Go to http://localhost:3000