- Supabase Project ID:
pdqqywctjlfcaeeaykvj
The Supabase project contains the following key tables:
users- User informationprojects- Course projectsstages- Learning stages for each projectproject_progresses- Track user progress through projectsstage_progresses- Track user progress through stages
SELECT id, title, description, order_num
FROM stages
WHERE project_id = <PROJECT_ID>
ORDER BY order_num ASC;mkdir -p project_<PROJECT_ID>_<PROJECT_NAME>
- File naming:
<stage.order_num>_<stage.id>_<stage.title>.html - Convert stage title to underscore case
- Store stage description as HTML content
- HTML content should match exactly content in the database
1. Execute SQL query to fetch all stages for project_id = X
2. Create directory with pattern project_X_project_name
3. For each stage:
- Format title as underscore_case
- Create file named {stage.id}_{formatted_title}.html
- Write stage.description to file
4. Verify all files are created
To fetch and store stages for project_id=38:
- Query:
SELECT id, title, description, order_num FROM stages WHERE project_id = 38 ORDER BY order_num ASC; - Create directory:
mkdir -p project_38_camera_junie - Create HTML files for each stage with pattern:
1_213_what_you_will_build.html - Write each stage's description HTML to its file
1. Review local HTML files that have been modified
2. Extract stage ID from each filename (e.g., "213" from "1_213_what_you_will_build.html")
UPDATE stages
SET description = '<HTML_CONTENT>'
WHERE id = <STAGE_ID>;1. For each modified file:
- Read file content
- Extract stage ID from filename
- Execute UPDATE query with escaped HTML content
2. Verify changes by querying updated stages