classroom-submissions-to-pdf
As announced here (in French):
- Fetches student-submitted URLs from Google Classroom
- Downloads HTML+CSS+JS code from Codepen/jsbin/jsfiddle URLs
- Renders one PDF file per student, containing their code, for annotation
Usage / demo
Watch the short video: How to evaluate students' code by hand, and without paper - YouTube
Step 1: Download students' submissions from Google Classroom
Step 2: Generate HTML and PDF files
Step 3: Annotate and grade your students' code on iPad
... or from any PDF editor
Prerequisites
node
: This requires Node 0.12.x or greater.
Setup
Before running, don't forget to:
- create an app and web client auth on Google's Developer Console;
- and set the corresponding environment variables:
GCLA_CLIENT_ID
,GCLA_CLIENT_SECRET
andGCLA_REDIRECT_URL
- run
npm run list
to list the course and courseworks associated to your google account (requires login or valid session) - populate the
courseId
andassignmentId
of your classroom(s) ingroups.json
All npm scripts that can be used are listed in the package.json
file.
Run tests
$ npm test # => tests the Google API