You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.
Our proposal is to allow authorized users to upload syllabi through Hyperschedule backend to Firebase. The links to these syllabi will be included with courses.json.
Verify user
When a user attempts to upload a file from Hyperschedule, the frontend will verify that the user is logged in. The front end will send a request with the user token, the syllabus pdf, and the course name and professor. With the user token, the backend will confirm that they have signed in with an 5C email. If they have, then we accept the Syllabus upload.
Send the Syllabus PDF to Firebase Storage, and update Firebase Database
First, we store the PDF in Firebase Storage. We then create a link to this stored PDF, and update the Firebase syllabus database, creating a unique entry for this course and professor, with the PDF link. If a unique entry already exists, we will instead replace the old link and delete the old syllabus entry for that professor and course.
Update local syllabi.json file
Once the Firebase database has finished updating, we will pull the Syllabus PDF link, and add the link to our local syllabi.json file. This syllabi.json file will be structured as a list of courses, where each course has a list of professors who teach that course, and for each professor, there is either a syllabus link or not, depending on whether one has been uploaded yet.
Merge the local syllabi.json file with the courses.json file
After the scraper's information is added to the courses.json file, we will merge the syllabi.json file with the courses.json file, such that for every course section, it will append a syllabus link, given that we have a syllabus for that course and professor.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our proposal is to allow authorized users to upload syllabi through Hyperschedule backend to Firebase. The links to these syllabi will be included with courses.json.
Verify user
When a user attempts to upload a file from Hyperschedule, the frontend will verify that the user is logged in. The front end will send a request with the user token, the syllabus pdf, and the course name and professor. With the user token, the backend will confirm that they have signed in with an 5C email. If they have, then we accept the Syllabus upload.
Send the Syllabus PDF to Firebase Storage, and update Firebase Database
First, we store the PDF in Firebase Storage. We then create a link to this stored PDF, and update the Firebase syllabus database, creating a unique entry for this course and professor, with the PDF link. If a unique entry already exists, we will instead replace the old link and delete the old syllabus entry for that professor and course.
Update local syllabi.json file
Once the Firebase database has finished updating, we will pull the Syllabus PDF link, and add the link to our local syllabi.json file. This syllabi.json file will be structured as a list of courses, where each course has a list of professors who teach that course, and for each professor, there is either a syllabus link or not, depending on whether one has been uploaded yet.
Merge the local syllabi.json file with the courses.json file
After the scraper's information is added to the courses.json file, we will merge the syllabi.json file with the courses.json file, such that for every course section, it will append a syllabus link, given that we have a syllabus for that course and professor.
The text was updated successfully, but these errors were encountered: