This directory contains an example on how to run the VM in a browser.
The example does these things:
- Instantiates a VM
- Set ups a listener of the VM's
step
event - Runs a sample code in the VM
- Logs the results
- Run
npm install
in the root of this project - Run
npm install
in this directory
First, follow these instructions:
- Run
npm run build:dist
in the root of this project
- Run
npm run example:node
in this directory
npm run example:browser
- Open http://localhost:8080 in a browser and check the result in web console.