janel2411 / tradewise

https://tradewise-orpin.vercel.app
0 stars 0 forks source link

Dynamic Content Loading for Lessons and Quizzes #3

Closed janel2411 closed 3 months ago

janel2411 commented 4 months ago

Currently, the lesson pages and quiz questions are hardcoded for Chapter 1. To improve complexity and make it easier to manage content for future chapters, we need to implement a system to pull this data from a database.

Steps to Reproduce:

Expected Behavior: Educational content lesson pages and quiz questions should be dynamically loaded from a database, allowing for easy updates and additions for future chapters.

Actual Behavior: All educational content and quiz questions for Chapter 1 (aka what we have so far) are hardcoded, making it difficult to scale and update.

Suggested Fix: Database Setup: Design and set up a database schema to store educational content and quiz questions. We could use tables for chapters, lessons, and questions. API Development: Create API endpoints to fetch content from the database. Endpoints should support retrieving content by chapter and lesson. Front-End Integration: Update the React components to fetch and display content from the API instead of hardcoded values. Testing: Thoroughly test the integration during Testing Stage to ensure content is loaded correctly and the user experience is smooth.

Branch Strategy: