Setting Up A New Course
Here are the basic steps you'll follow to get a project started:
-
Clone the Repository
-
Copy course_template and rename it for the course you want to develop. We'll call this the course root folder. In the course root folder:
- Rename course.yaml.example to course.yaml (Rename the other .yaml files by removing the placeholder .example extension as well.)
- Set up your .env file
- Make a copy of .env.example and save it as .env in the canvas-docs-as-code folder.
- Get your Canvas API and save it in .env.
- For Zotero integration, get your Zotero API and Zotero ID and save them in .env.
- Set the course id.
- Find the course ID for the course you want to sync to. (We recommend syncing to a sandbox course and then importing that course into your live course when everything is ready.)
- Save the course ID in the course_id field in course.yaml file (in the root folder for the course).
-
Set up Python
-
Install Python (if needed).
- Create a virtual environment for Python by running
python3 -m venv .venvin your terminal. - Activate the virtual environment:
source .venv/bin/activate(or.venv\Scripts\activateon Windows) - Install dependencies by running
pip install -r requirements.txtfrom the project root folder. - Remember to activate your virtual environment before running Python scripts.