Quickstart
Learn how to deploy your first Instruqt track.
Last updated
Learn how to deploy your first Instruqt track.
Last updated
Tracks are guided learning experiences. There are two main parts to a track:
Challenges for users to complete.
Sandboxes for users to interact with, in challenges.
Every time a learner plays a track, the following occurs:
Instruqt deploys a sandbox.
The first challenge is presented to the leaner.
The learner solves the challenge by interacting with the sandbox, and optionally checks their work.
The subsequent challenge is displayed, or the track finishes.
You will build a track that teaches learners how to create files and directories in Linux.
Create a track with the Instruqt Web UI or CLI:
To use the Instruqt CLI you must install the executable. Instructions can be found here.
Click Create track in the upper-right corner of the Content page.
Select Use template from the dropdown.
Click Select on the Sandbox container
template. This template has an Ubuntu container in its sandbox, and an initial challenge created.
↳ This opens a "Create track" dialogue
Input a track title and slug (URL).
Finally, click Create. ↳ This opens the Track dashboard page
A track slug is a unique identifier for your tracks, often used in URLs.
A challenge has a few components:
A title
, slug
, and assignment
.
Tabs
with components that you make available to the learner. For example, a terminal.
Scripts
that prepare the challenge, check if the learner solved the challenge, etc.
Add a second challenge to the track with the Instruqt Web UI or CLI:
In the Challenges section of the Track dashboard page, click Add new.
Select Assignment from the dropdown. ↳ This opens a new challenge page
Enter Creating a text file
and creating-file
as the challenge name and URL.
In the Description field, enter Learn how to create a text file
.
In the upper-right corner, click Save.
From the top menu bar, click Tabs.
Click Add new tab.
Select the Terminal tab type.
In the Tab name field, enter Shell
. In the Select your host list, pick container
.
Click Save.
From the top menu bar, click Assignment and enter the following markdown:
Click Save changes.
You can expand a challenge with a script to check if a learner has solved the challenge. This way, you can support the learner if they need help, or praise then when solving a challenge.
Add a script that checks if the learner created the required text file:
Click the Creating a text file
challenge.
Click Scripts to open the Lifecycle Scripts page.
Under container, click check.
Enter the following bash script to check if the learner created the text file:
Click Save.
Click the track name in the upper-left to open the Track dashboard page again.
Read the Lifecycle Scripts documentation for more information on the types of scripts you can use in your challenges and tracks.
If you are using the CLI, then run the following command to upload your track to Instruqt:
Run the following command to upload your track:
Changes made from the web UI are automatically deployed, so no further action is required.
You can now play your track. Test the track as if you are a learner:
Click Play track on the Track dashboard page.
Wait until your environment is created and click Start.
Solve the first challenge and click Check.
Click Start again and solve the second challenge.
Click Check again to see if you solved the second challenge.
Click Return to overview to close the track execution.
We recommend the following articles to continue your learning journey: