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:
Navigate to the lesson pages and quiz questions.
Observe that the content is static and hardcoded for Chapter 1.
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:
Create a feature branch for this issue (like feature/dynamic-content-loading).
Implement the database schema and API endpoints in this branch.
Update the React components in the same branch.
After development and testing, merge the feature branch into the main branch after conducting a code review.
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: