Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| p5js-local-server [2024/02/20 21:30] – renick | p5js-local-server [2024/03/06 22:41] (current) – renick | ||
|---|---|---|---|
| Line 58: | Line 58: | ||
| https:// | https:// | ||
| + | |||
| + | On a Mac, I recommend this process: | ||
| + | |||
| + | - In your Documents folder, create a folder called ' | ||
| + | - In that folder, run the command: npm install http-server. | ||
| + | |||
| + | Here's a tutorial on using the terminal on a Mac: https:// | ||
| + | |||
| + | Here's a tutorial on using the terminal on a Windows: https:// | ||
| ===== make a directory for your project ===== | ===== make a directory for your project ===== | ||
| Line 64: | Line 73: | ||
| {{:: | {{:: | ||
| + | |||
| + | I'd put this in the javascript directory that you made above. | ||
| ===== put the necessary files in the directory ===== | ===== put the necessary files in the directory ===== | ||
| Line 88: | Line 99: | ||
| {{:: | {{:: | ||
| + | |||
| + | If http-server is not in your system PATH, then you need to call it explicitly with the path to the binary executable. That's in the location ./ | ||
| + | |||
| + | | ||
| + | |||
| + | For more on paths, see this tutorial: https:// | ||
| ===== use your browser to access the IP address indicated by http-server ===== | ===== use your browser to access the IP address indicated by http-server ===== | ||