UserVM Handbook/Windows: Difference between revisions

no edit summary
No edit summary
No edit summary
node cvmts/dist/index.js
}}
 
== Running a local webapp ==
Before you put your VM on the UserVM roster, you'll probably want to test it out for yourself. For that, we'll throw up a test webapp. Start by cloning the source:
{{code|lang=batch|
cd C:\collabvm
git clone https://github.com/computernewb/collab-vm-1.2-webapp.git
cd collab-vm-1.2-webapp
}}
Then, copy <code>config.example.json</code> to <code>config.json</code>, and replace ServerAddresses with your server address:
{{code|lang=json|
"ServerAddresses": [
"ws://127.0.0.1:6004",
],
}}
Now you can build the webapp, and serve it:
{{code|
yarn
yarn build
yarn serve
}}
This will run the webapp at <code>127.0.0.1:1234</code>, which you can navigate to in your browser. If all went well, your VM should show up. If not, and you don't know why, join our discord and ask for help there!