page_type: sample name: Mixed Reality Extension SDK Samples description: Samples showing how to build and run your first AltspaceVR extension using the Mixed Reality Extension SDK. languages:
The Mixed Reality Extension SDK Samples is the easiest way to build and run your first AltspaceVR extension using the Mixed Reality Extension SDK.
From command prompt:
git clone http://github.com/microsoft/mixed-reality-extension-sdk-samples
cd mixed-reality-extension-sdk-samples\samples\hello-world
npm install
This will install all dependent packages. (and will do very
little if there are no changes)npm run build
This should not report any errors.npm start
This should print "INF: Multi-peer Adapter listening on..."In AltspaceVR
ws://localhost:3901
You should now see the words "Hello World" above a spinning cube. Congratulations, you have now deployed a Node.js server with the MRE SDK onto your local machine and connected to it from AltspaceVR.
In order for other AltspaceVR users to see your SDK app running, it must be hosted in a way they can connect to it. To learn about cloud hosting and other solutions, checkout DEPLOYING.md in the SDK repo.
To learn more about the SDK, please read the MRE SDK readme.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.