Open our track template
Open the web interface in your browser (play.instruqt.com).
Go to your team page, if you have multiple teams, go to the one where you want to create your track.
Press the "Create new track" button.
Follow the steps in the wizard using the information from the track template you just downloaded.
Make sure to use your own unique title and slug.
Hit the "Finish" button once you're done.
Extract the package
Run the CLI
Authenticate following these steps:
Pull track into the current directory using the CLI
Inspect the files that were downloaded to get a feel of the structure
instruqt track pull --slug <organization-slug>/<track-slug>
ultimate-introduction-to-python as configured in step 1.
Open up the track.yml in your code editor
Look for the tab definition of the first challenge
Add a second tab
- title: Editortype: codehostname: pythonpath: /root
Create a setup script that creates a file within the user’s environment
Name the script
#!/bin/bashcat <<EOF >/root/hello.pyprint("<replace me>")EOF
Create a check script that validates the user’s solution
Name the script [challenge-slug]/check-python
#!/bin/bashif ! grep "Hello Python" /root/hello.py; thenfail-message "Uh oh, looks like you didn't print 'Hello Python'" || exit 1fi
Save your edited files
Push your work back to platform (make sure to run this command from your track's directory)
instruqt track push
This will update the track on our platform and will automatically trigger a build.
Test your track by running the following command:
instruqt track test
Expect an error.
Debug your code
Solve the problem
Push new version
Push final version once tests are passing
instruqt track logs
Go to your track on the web interface
Use the controls in the sidebar to publish your track
Use the controls in the sidebar to set it to private (optional)
Learn more about the available resources you can provision in a sandbox environment, the different tabs you can make available (a terminal, a visual code editor and webpages), and about the lifecycle scripts.