top of page

Glitch glitches!

Questions

Based on the MQTT sample, I added a server file in the public folder.

The index.html file contains the p5 library, however, all the p5 elements in the sketch.js are not recognized.

How to direct the program to run the sketch file? 

螢幕截圖 2022-04-23 下午9.30.20.png

Glitch.com assumes that the server, a node.js script,  will be in the main directory of your project and there will be a package.json file describing its dependencies, also in the main directory. The sketch should be in the public folder because it is the default page to show. 

bottom of page