| Examples | PrairieLearn |
Checkpoint helps you create step-by-step, mission-based tutorials in PrairieLearn. Students learn through hands-on practice in a terminal environment, receiving instant feedback as they progress through each mission. Unlike traditional tutorials, Checkpoint actively monitors student progress and provides immediate validation when they successfully complete each step.
Let's dive into an interactive Git tutorial! We've created a hands-on learning experience where students:
🔸 Start with the basics of version control
🔸 Initialize their first Git repository
🔸 Learn about staging files and making commits
🔸 Get instant feedback as they progress
pip install -e .
Before deploying, login to Docker Hub:
docker login
Take a look at examples/questions/git-tutorial/checkpoint.yaml
:
title: Git Basics Tutorial
topic: Version Control
tags:
- git
- terminal
image:
registry: andylizf
name: git-tutorial
base: ubuntu:22.04
runtime:
program: bash
packages:
- git
- nano
- openssh-client
flags:
- title: Initialize Git Repository
prompt: "Mission 1: Create Your First Git Repository"
description: |
Let's start by creating a new Git repository...
# See the full file for more missions...
This single file defines our entire Git tutorial structure!
cd examples/questions/git-tutorial
checkpoint deploy
cd ../../.. # Move to the root of the Checkpoint repo
docker run -it --rm -p 3000:3000 -v "${PWD}/examples:/course" -v "${PWD}/examples/pl_ag_jobs:/jobs" -e HOST_JOBS_DIR="${PWD}/examples/pl_ag_jobs" -v /var/run/docker.sock:/var/run/docker.sock --platform linux/amd64 --add-host=host.docker.internal:172.17.0.1 prairielearn/prairielearn
- Open http://localhost:3000 and click the green "Load from Disk" button
- On the homepage, select "PL Active Environment Runtime" under "Courses with instructor access"
- Open the Git tutorial in the Questions panel and click "Open Workspace" to launch your interactive terminal
The terminal provides a real Linux environment where you can practice Git commands and get instant feedback on your progress!
Want to create your own tutorial? We've got you covered! Check out our Instructor's Guide for a detailed walkthrough of creating engaging, mission-based tutorials. You'll learn:
- How to transform traditional assignments into interactive missions
- Tips for writing robust regex patterns
- Best practices for mission design
- Advanced validation techniques
Ready to start? Just:
- Create a new
checkpoint.yaml
file - Define your Docker environment
- Specify your learning missions
- Deploy with
checkpoint deploy
Check out examples/questions
for more inspiration!
MIT
Made with ❤️ for interactive learning