PrairieLearn (PL) course setup for CS10 (Beauty and Joy of Computing) at University of California, Berkeley
For detailed instructions to set up PrairieLearn, please direct to Installing and running PrairieLearn
You must have Docker installed on your system for the following to work. For Docker download and startup guide, direct to here
-
Start Docker application on your machine.
-
Clone the course repo to your machine e.g. your desktop
-
Mount PL to course repo. If you cloned the repo to your desktop, it will look like this:
docker run -it --rm -p 3000:3000 \
-v "$PWD":/course `# Map your current directory in as course content` \
-v "$HOME/Desktop/pl-cs10/pl_ag_jobs:/jobs" `# Map jobs directory into /jobs` \
-e HOST_JOBS_DIR="$HOME/Desktop/pl-cs10/pl_ag_jobs" \
-v /var/run/docker.sock:/var/run/docker.sock `# Mount docker into itself so container can spawn others` \
prairielearn/prairielearn
-
Once the Docker Container has been initialized, go to http://localhost:3000/pl
-
Click
Load from disk
on top-right corner of the page. As long as no error is raised, you can navigate to your desired page.
Examples can be found inside the official codebase under exampleCourse