- Get Started
- Write Code
When you download the prototypes, you have two options:
There are three sample courses included in the download — a golf tutorial, a Tetris game, and a location-based tour of Nashville museums. You’ll find these courses in their respective folders.
To configure them to report statements to an LRS, you need to edit the config.js (rename it from config.js.template to just config.js). You’ll want to change the config file to contain the correct endpoint for the LRS and the actor name and email address.
You need to get an LRS if you don’t already have one.
The actor line in the config file should look like this, with you replacing the email address and the first/last names:
The registration line in the config file should look like this (you can get a new UUID here):
After you’ve set up the endpoint and the user info, run the index.html file and you can launch the courses or use the statement viewer to view statements. Depending on your web browser security settings, some of the prototypes may not run correctly if you run the html files directly on your computer; you might need to host them on a server.
xAPI still allows for the use of course packages, similar to SCORM packages. To see this in action, just download the prototypes and find the correct folder for the course you’d like to use. You’ll see the Golf Example course, the JsTetris game, and the Locator course. Navigate to the folder of the course that you’d like to use, and create a zip file out of its entire contents. (If you’d rather just have the xAPI courses to import into your LMS, you’ll need to unzip the complete package and re-zip one of the single prototypes).
You now have a xAPI package that can be imported into any xAPI enabled LMS.