-
Notifications
You must be signed in to change notification settings - Fork 13
Local Server
bsubbaraman edited this page Oct 19, 2021
·
1 revision
Some p5 functionality - like the serial communication that this library relies on - requires running a local server. Because WebSerial is only supported on Chrome, Web Server for Chrome is a good option to do this easily. The steps below walk through the set up process! If you don't want to deal with this, feel free to use the p5.js web editor (be sure to use Chrome still!). If you know how to do this already or have a different preferred method for launching a local server- great! Feel free to move on to the getting started page or look at the examples.
- Add the Web Server for Chrome extension
- Got to
chrome://apps
and then click the Web Server for Chrome icon - Choose the folder to launch the server from. If you're taking a look at the examples in this repo, choose the
p5.fab
folder. - Toggle the start switch to 'on', and navigate to
http://127.0.0.1:8887
. You should be ready to go!
The info on this page largely comes from the p5.js doc - look over there for more info!