Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.15 KB

File metadata and controls

23 lines (17 loc) · 1.15 KB

JavaScript Style Guide

Canvas Discussion

This project pulls via the Canvas API the discussions from the specified Canvas course and exports it as CSV.

Getting Started

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.

Prerequisites

  1. Install Node 10 or greater.
  2. Install Git.

Installion and execution of script

  1. Clone this repo. git clone https://github.com/justin0022/canvas-discussion.git
  2. Then cd into the repo. cd canvas-discussion
  3. Run the installation script. npm install (If you see babel-node: command not found, you've missed this step.)
  4. Generate Canvas API token and copy it to clipboard.
  5. Rename the sample.env file to .env, and add your API token to CANVAS_API_TOKEN=.
  6. Add your course ID to index.js, where it says: getDiscussions(/* add Canvas course id here */)
  7. Run the script. npm start.
  8. An output.csv file should be generated with discussion data.