Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 651 Bytes

File metadata and controls

18 lines (14 loc) · 651 Bytes

Physical Web Candy Dispenser

Node.js hosts a simple webpage that has one button. This button calls a function on a Particle Core to dispense candy.

In the deployment, bluz would also be broadcasting the URL through a physical web beacon, allowing anyone to talk to the candy machine just by walking up to it.

Code is not fully tested. Code is not production quality. It is just an example for a demo project

##To run:

  1. Clone the repository
  2. Create a file called access_token.txt and add your Particle access token to it
  3. Run
$ node server.js
  1. Open localhost:8080 in your browser
  2. Hit the button, and get some candy!