Best resource for github API: https://octokit.github.io/rest.js/
First, add in your api key (access token) to the apikey.js file. This token can be generated here: https://github.com/settings/tokens.
-
If you like to download project cards, make sure you point it at the correct
ownerandrepo. Use by runningnode retrieveCards.js. -
If you would like to upload project cards, use
createCards.js. This script will read instudentCards.jsonand upload all of the cards in thecardsarray. You can change what students to upload cards to by changing the github usernames in thestudentsarray inprojectConfig.json. Feel free to alter any of the names for anything and change what the projects are called if need be. This script is ran withnode createCards.js -
Adding cards is pretty much the same as creating, just use
addCards.js. This file will pull cards to update fromstudentCards.json. The easiest way to generate new cards would be to pointretrieveCards.jsat another project in order to retrieve different cards (for a later stage). This file can be run withnode addCards.js. -
If there are any cards in the first column, you can use
deleteCards.jsto delete all cards. Usenode deleteCards.js.