Here's a quick guide on using this script.
-
Download submissions from Coursemology. This can be done by heading to the submissions page and clicking the three-dots menu icon on the right-hand side. There will be an option to download all submissions.
-
Unzip the submissions folder and copy the folders over to this directory, under
data/
. In other words, you should have something like:/update-students-from-coursemology/data /submissions /student1 /Question 1... /Question 2... ... /student2 ... ...
-
Install the dependencies by running
npm install
. -
Run
node createNewJson.js
-
Check through the new
students.json
file (which will be in this current directory):- Update the faculties:
- For SoC students, the
faculty
should be"Computing"
. - For students with multiple faculties, e.g. DDP students, their
faculty
should be comma-separated, e.g."Computing, Science"
. - In general, you can follow NUS' faculty names: https://www.nus.edu.sg/education.
- For SoC students, the
- Fix links:
- Some students would submit only their GitHub ID instead of a full GitHub URL.
- Some URLs will be missing
https://
. It is possible to naively fix this by adding a quick check and prepend in the script, but some students may try interesting things likemailto:
, etc.
- Update the faculties:
-
Copy the new year folder (which will be in this current directory) over to
website/static/img/students
, and replacewebsite/students/students.json
with the newstudents.json
. -
Create a new
<year>.md
file inwebsite/students
and update it with the new year values.