فهرست منبع

docs: update README with instructions for local development exercise import and add new prompt file for generating fitness exercises in CSV format

Mathias 10 ماه پیش
والد
کامیت
6aea06016e
2فایلهای تغییر یافته به همراه26 افزوده شده و 1 حذف شده
  1. 3 1
      README.md
  2. 23 0
      scripts/import-exercises-with-attributes.prompt.md

+ 3 - 1
README.md

@@ -160,6 +160,8 @@ id,name,name_en,description,description_en,full_video_url,full_video_image_url,i
 157,"Fentes arrières à la barre","Barbell Reverse Lunges","<p>Stand upright...</p>","<p>Stand upright...</p>",https://youtube.com/...,https://img.youtube.com/...,slug-fr,slug-en,PRIMARY_MUSCLE,QUADRICEPS
 ```
 
+Want unlimited exercise for local development ? Just ask chatGPT the prompt from ./scripts/import-exercises-with-attributes.prompt.md
+
 ### Available Attribute Types
 
 - **TYPE**: `STRENGTH`, `CARDIO`, `PLYOMETRICS`, `STRETCHING`, etc.
@@ -317,4 +319,4 @@ Appear in the README and on the website as supporter by donating:
   Your support helps cover hosting costs, exercise database updates, and continuous improvement.<br>
   Thank you for keeping <strong>workout.cool</strong> alive and evolving 💪
 </p>
-````
+```

+ 23 - 0
scripts/import-exercises-with-attributes.prompt.md

@@ -0,0 +1,23 @@
+Generate 50 unique fitness exercises in CSV format with the following columns:
+
+`id,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value`
+
+## Requirements:
+- Each exercise should have multiple rows (one per attribute)
+- Use REALISTICS YouTube URLs for videos (format: https://www.youtube.com/watch?v=VIDEO_ID) from @https://www.youtube.com/@fit-distance/videos
+- Use corresponding thumbnail URLs (format: https://img.youtube.com/vi/VIDEO_ID/maxresdefault.jpg)
+- Include HTML tags in descriptions (like <p>, <strong>, <em>)
+- Create slugs in kebab-case format
+
+Use these attribute types and ONLY these:
+`TYPE`: `STRENGTH, CARDIO, PLYOMETRICS, STRETCHING, FLEXIBILITY, POWERLIFTING`
+`PRIMARY_MUSCLE`: `QUADRICEPS, CHEST, BACK, SHOULDERS, BICEPS, TRICEPS, HAMSTRINGS, GLUTES, CALVES, CORE, FOREARMS`
+`SECONDARY_MUSCLE`: `QUADRICEPS, CHEST, BACK, SHOULDERS, BICEPS, TRICEPS, HAMSTRINGS, GLUTES, CALVES, CORE, FOREARMS`
+`EQUIPMENT`: `BARBELL, DUMBBELL, BODYWEIGHT, MACHINE, CABLE, RESISTANCE_BAND, KETTLEBELL, MEDICINE_BALL`
+`MECHANICS_TYPE`: `COMPOUND, ISOLATION`
+
+## Example format:
+1,"Squat avec barre","Barbell Squat","<p>Placez la barre...</p>","<p>Place the barbell...</p>",https://www.youtube.com/watch?v=abc123,https://img.youtube.com/vi/abc123/maxresdefault.jpg,"Introduction courte","Short introduction","squat-avec-barre","barbell-squat",TYPE,STRENGTH
+1,"Squat avec barre","Barbell Squat","<p>Placez la barre...</p>","<p>Place the barbell...</p>",https://www.youtube.com/watch?v=abc123,https://img.youtube.com/vi/abc123/maxresdefault.jpg,"Introduction courte","Short introduction","squat-avec-barre","barbell-squat",PRIMARY_MUSCLE,QUADRICEPS
+
+Reply only with the csv.