DSC-McMaster-U / Gamified-Learning-Platform

MIT License
6 stars 14 forks source link

Modify lesson page to render course information dynamically from the database #110

Closed alexchen2 closed 7 months ago

alexchen2 commented 9 months ago

As of now, the current lesson page has not been adapted to dynamically read and display courses and their content from the database. The HTML file just contains a tag structure for side tabs and lesson panels filled with placeholder data, but we need to configure the file so that this same structure is generated, but with actual lesson data relevant to users.

The task is to modify the current HTML page structure of lesson.html with Jinja, so that the necessary number of tabs/lesson panels are created and every container holds course information from the database. In addition, the current /lesson/<int:course_id> endpoint in main.py needs to be modified so that queried course, module, topic, and lesson data is sent to front-end.

alexchen2 commented 9 months ago

The front-end side of things may be a bit difficult to modify, given how many separate parts need to be updated. Here's a rough outline of what needs to be changed:

(More information to follow if necessary.)

MithunPara commented 9 months ago

interested