This repository contains my script submission for cse-challenge.
cd cse-challenge
npm run start -- --help
npm run start -- -t <token
- Create a GitHub repo and send along the link
- Commit your work as you work documenting each commit
- Make sure not to commit the API key you've been given
{
"subjectCode": "6012dd6a016ce30026cbd08d",
"number": "101",
"title": "Accounting 101",
"credits": {
"chosen": "fixed",
"credits": {
"min": "3",
"max": "3"
},
"value": "3"
},
"status": "draft",
"dateStart": "2021-04-03",
"groupFilter1": "6012e9eaffe5da00a2a51cbb",
"groupFilter2": "6012e96effe5da00a2a51cb9",
"campus": {
"6012de03baa3f800262b5dbf": true,
"6012ddfbe43ec1002784e1c5": true
},
"notes": "Submitted by <my name>"
}
- Read data from the provided CSV
- There are several pieces of information we will need to retrieve:
subjectCode
: subject identifier (ex. ACCT is 6012dd6a016ce30026cbd08d)groupFilter1
andgroupFilter2
: group identifier and parent group identifiercampus
: campus identifier (ex. North is 6012ddf35a84800027c335e3)
- Additional logic that will require careful consideration:
creditType
can change the values and format of the data forcredits
andvalue
dateStart
is based of off Winter, Spring, Summer, and Fall terms andYYYY-MM-DD
format (ex. Fall 2021 needs to be 2021-10-04)
- Static fields:
- status:
draft
- notes:
Submitted by Nick Jenson
- status:
- cse-challenge repository
- Kuali Developer Documentation
- csv-parser npm documentation
- axios npm documentation
- yargs npm documentation