This project extracts the Canvas quiz events from a specific course and quiz and outputs a CSV. It returns a CSV with the following headers:
- student_name
- student_number
- canvas_user_id
- quiz_attempt
- event_type
- created_at
- question_name(s)
These instructions will get you a copy of the project up and running on your local machine for use with your own API tokens and Canvas domains.
- Install Node 8.0.0 or greater.
- Install Git.
- Create a
.envfile. - Add the following:
CANVAS_API_TOKEN={YOUR API TOKEN}andCANVAS_API_DOMAIN={YOUR API DOMAIN}. An exampleCANVAS_API_DOMAINishttps://{school}.instructure.com/api/v1
- Clone this repo.
git clone https://github.com/ubccapico/canvas-quiz-logs.git - Then cd into the repo.
cd canvas-quiz-logs - Run the installation script.
npm install(If you seebabel-node: command not found, you've missed this step.) - Open
index.jsand supply the Canvas course id and quiz id to thegetQuizEvents({canvas_id}, {quiz_id}) - Run the application.
npm start - The data will be output in
outputfolder.