- Get Started
- Write Code
In the root folder of the Driver package that you just downloaded, you’ll see some files.
Software you might need…
You’ll need a text editor to edit these files. Some text editing programs will attempt to display the files as webpages instead of text, so for the purposes of this guide we’ll be using TextWrangler for Mac (it’s free.) Don’t use TextEdit for Mac, it won’t work. If you’re on a Windows machine, WordPad (no download required) is the text editor that you want to use.
After you’ve downloaded Driver, you’ll need to modify two files that are found in the root directory of the download.
The first is “tincan.xml”. Open the file in your text editor, and change the following lines:
After you’ve made your modifications, save your file.
The other file you need to modify for xAPI use is tc-config.js, also found in the root directory of your download. Open it in your text editor, and pay attention to the following code:
Now, the current configuration will allow you to create a xAPI package that will send statements to the LRS of whichever xAPI enabled LMS you import it into. However, you have the option of sending statements to more than one LRS at a time. To demonstrate this, look for the two tiny circles in the screenshot above. Just delete the /* and the */ in the bottom of the tc-config.js, and when you launch your xAPI course, you’ll be generating statements to your LMS as well as to our public LRS. Make sure to check our public LRS after you’ve generated statements in this way. You can see your statements in your LMS and in our public LRS.
If you don’t delete the /* and */ as mentioned above, you’ll only generate statements to the LRS of the LMS that you imported your content to.
After you’ve made your modifications, save your file and move on to the next step.