Skip to content

Getting Started

Josh Stovall edited this page Dec 3, 2020 · 1 revision

Getting Started

Install

clone the repo to a new folder called XR

git clone https://github.com/xrscript/XR.js XR

Run the app

cd to the XR.js main directory

cd XR

start the app

node app

now go to http://localhost:4000

Basic Setup

Here is the bare minimum you need to get started.
Place the following code in your HTML file.

Remember to use <script type="module">

<script type="module">
     // import XR.js
     import * as XR from '/XR.js';

     // create a reality
     var reality = new XR.Reality();
</script>

See Examples for more.

Dev Environment

You can set up Chrome to debug — see Debug USB and Debug WiFi.

Clone this wiki locally