Giter VIP home page Giter VIP logo

adrienjoly / classroom-submissions-to-pdf Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 4.65 MB

Extract codepen/jsfiddle/jsbin links from Google Classroom submissions => convert in PDF, for annotation and grading

Home Page: http://mailchi.mp/116ff02883f5/exporter-en-pdf-le-code-de-vos-tudiants-depuis-google-classroom

JavaScript 95.16% Shell 4.84%
student-evaluation grading converter google-classroom pdf-generation jsfiddle jsbin codepen teaching teaching-tools

classroom-submissions-to-pdf's Introduction

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

🇫🇷 Enseignants francophones, si vous voulez corriger le code de vos étudiants de manière plus efficace, inscrivez-vous à ma liste de diffusion: adrienjoly.com/eval.

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:

  1. create an app and web client auth on Google's Developer Console;
  2. and set the corresponding environment variables: GCLA_CLIENT_ID, GCLA_CLIENT_SECRET and GCLA_REDIRECT_URL
  3. run npm run list to list the course and courseworks associated to your google account (requires login or valid session)
  4. populate the courseId and assignmentId of your classroom(s) in groups.json

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

Run tests

$ npm test        # => tests the Google API

classroom-submissions-to-pdf's People

Contributors

adrienjoly avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ouskah

classroom-submissions-to-pdf's Issues

BUG: jsfiddle URL rendered to empty file names

$ npm run render-from-url https://jsfiddle.net/adrienjoly/v20o40nx/

> [email protected] render-from-url /Users/adrienjoly/Dev/github-cours-javascript-eemi-2016-2017/classroom-submissions-to-pdf
> node src/render-from-url.js "https://jsfiddle.net/adrienjoly/v20o40nx/"

=> rendered to .html
=> rendered to .pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.