Skip to content

Exporting Course Source Code

Ben Sharp edited this page Aug 30, 2016 · 7 revisions

Exporting Course Source Code

For any course you have developed in the Adapt Authoring Tool you can export the source code to a standalone Adapt framework. This is ideal if you want to test out plug-ins that not yet available for the Authoring Tool or develop and test your own plug-ins.

Prerequisites

Ensure that you have all the necessary prerequisites installed.

Export the Course Source Code

In the Authoring Tool open the course you wish to export by double-clicking it in the Dashboard. Then click the "Export source code" option in the menu bar.

Unzip the Course

The exported course source code will download as a ZIP. Use the program of your choice to extract the files into a folder for the course.

Install Dependencies

Open a console interface (e.g. Git Bash, Terminal on OSX, Powershell or CMD.exe) and navigate to folder you extracted the files into. With the extracted folder as your current working directory, run the following command:
npm install

Build and run the course

You can now build your standalone course by running the following command:
grunt build

Start a server by running the following command:
grunt server

To view the course, open a browser to the following URL: http://localhost:9001/
To terminate the server, press ctrl+c .

Clone this wiki locally