VikeLabs / lecshare

A React application with typescript implementation: Making lectures more accessible for students with auditory, visual, or learning impairments; and Improving learning outcomes for students in lecture-based courses.
https://vikelabs.github.io/lecshare/
GNU General Public License v3.0
5 stars 3 forks source link

Lecture config #44

Closed Brycce closed 4 years ago

Brycce commented 4 years ago

Create a config file for the application to use to load in lectures.

Currently, we reference two separate files to create one view (the audio and text). We would like to load in a single file that contains the necessary information to load in multiple lectures.

For the time being, this will be a static config json file.

{
    "econ180f2018": {
        "name": "ECON 180",
        "professor": "Christopher Willmore",
        "term": "f2018",
        "lectures": [
            {
                "name": "Lecture X",
                "textSrc": "path to find the text file",
                "audioSrc": "path to find the audio file"
            }
        ]
    }
}

Using axios.get('config.json') from the app, we can fill in the appropriate fields within the app.

aomi commented 4 years ago

Taken care by the backend.