This is an old revision of the document!
hosting your sketches on a local server
The steps are as follows:
- install nodejs and npm
- using npm, install http-server
- make a directory for your project
- put the necessary files in the directory
- run http-server from the command line in that directory
- use your browser to access the IP address indicated by http-server
Let's look at each step in detail.
install nodejs and npm
Nodejs is available here, but you probably want to get it from your package manager instead:
For Linux, check your distribution. For example, complete instructions for Arch Linux are here:
https://wiki.archlinux.org/title/Node.js
For Mac, you might use brew:
https://formulae.brew.sh/formula/node
For Windows, you could use Chocolatey:
using npm, install http-server
NPM, the Node Package Manager, comes with your Nodejs installation. Use it to install the http-server package: