一个全面的健身指导平台,可以为你制定锻炼计划、跟踪进度并访问包含详细说明和视频演示的庞大锻炼数据库。
项目包含一个全面的练习数据库。要导入练习样本,请执行以下操作:
导入的先决条件
- 准备 CSV 文件
你的 CSV 应该包含以下列:
id,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value
可以使用提供的示例。
导入命令
# Import exercises from a CSV file
pnpm run import:exercises-full /path/to/your/exercises.csv
# Example with the provided sample data
pnpm run import:exercises-full ./data/sample-exercises.csv
CSV 格式示例
id,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value
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,TYPE,STRENGTH
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
可用的属性类型
- TYPE:
STRENGTH, CARDIO, PLYOMETRICS, STRETCHING, etc.
- PRIMARY_MUSCLE:
QUADRICEPS, CHEST, BACK, SHOULDERS, etc.
- SECONDARY_MUSCLE: Secondary muscle groups targeted
- EQUIPMENT:
BARBELL, DUMBBELL, BODYWEIGHT, MACHINE, etc.
- MECHANICS_TYPE:
COMPOUND, ISOLATION