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>
Where track-slug
is 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 <challenge-slug>/setup-python
#!/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.
View logs
Debug your code
Solve the problem
Push new version
Test again
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)
Now that you created your very first hello world track, you may want to dip your toes into more advanced topics. Check out: