adrienjoly / classroom-assignments-cli

πŸ‘©β€πŸŽ“ a CLI to download assignements submitted by students on Google Classroom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gclass – Google Classroom Assignments CLI

Fetches courses, students, assignments and student-submitted URLs from Google Classroom API.

Forked from adrienjoly/classroom-submissions-to-pdf.

Usage

$ npx gclass list-courses # will list course_ids
$ npx gclass get-course <course_id> # will display metadata about the course
$ npx gclass list-students <course_id>
$ npx gclass list-assignments <course_id> # will list assignment_ids
$ npx gclass list-submissions <course_id> <assignment_id>
$ npx gclass list-submitted-urls <course_id> <assignment_id>
$ npx gclass generate-test-script <course_id> <assignment_id>

Setup

Before running, don't forget to:

  1. create an app and web client auth on Google Developer Console;
  2. and set the corresponding environment variables: GCLA_CLIENT_ID, GCLA_CLIENT_SECRET and GCLA_REDIRECT_URL (note: you can store them in a .env file)

All npm scripts that can be used are listed in the package.json file.

Run tests

$ git clone https://github.com/adrienjoly/classroom-assignments-cli.git
$ cd classroom-assignments-cli
$ npm install
$ npm test        # => tests the Google API

About

πŸ‘©β€πŸŽ“ a CLI to download assignements submitted by students on Google Classroom


Languages

Language:JavaScript 99.0%Language:Shell 1.0%