Sage-Bionetworks/QuizEditor

Name: QuizEditor

Owner: Sage Bionetworks

Description: Utility web app for editing Synapse Quiz JSON

Created: 2016-07-05 19:26:57.0

Updated: 2016-07-05 19:28:40.0

Pushed: 2016-07-06 16:26:07.0

Homepage: null

Size: 41

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Used to create/edit a Synapse Quiz (using the effective Quiz schema)

Based on https://github.com/jdorn/json-editor

Steps:
  1. Clone this repo.
  2. Start a web server python -m SimpleHTTPServer 8000
  3. Go to the main page. http://localhost:8000
  4. Follow instructions (to load/edit/generate quiz)
  5. Send a developer the output json.

For the Certification Quiz, the developer can deploy the quiz json (after backing it up) by updating the contents of certifiedUsersTestDefault_vX.json file in the AWS S3 bucket.

Screenshot:

screen shot 2016-07-05 at 12 47 27 pm

(Developers only) How to update the underlying Quiz schema json file
  1. Go to the auto-generated Quiz.java file for the latest repo version.
  2. Copy the Quiz.EFFECTIVE_SCHEMA. (remove the escape backslashes that are necessary in java, and pretty print)
  3. Copy the MultichoiceQuestion.EFFECTIVE_SCHEMA. (again, remove the escape backslashes that are necessary in java, and pretty print)
  4. In the Quiz json, replace the Question interface definition with the concrete MultichoiceQuestion json. The schema can now be used by this tool to create a MultichoiceQuestion quiz from scratch, or edit an existing Quiz (including the current Certified User Quiz).

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.