Prerequisites: You should have Node.js and npm installed.
- Compile by running
npx spago bundle --outfile webpage/index.js
. This produces a fileindex.js
in thewebpage/
directory.
You can try to directly open webpage/index.html
, which links to index.js
, with your browser, but MIDI output probably won't work due to security limitations, so you will have to make a local server.
- Serve the files by running
npx serve
from insidewebpage/
. - Open the page with your browser.
npx serve
should have given you the address; it looks something likehttp://localhost:3000