Compare commits

..

No commits in common. "0cf0022f59689d7b7012aed43c5ece4dbfef5ee4" and "268dacd72cebd33bb43868e2e491166f04361e5d" have entirely different histories.

1 changed files with 14 additions and 56 deletions

View File

@ -75,7 +75,17 @@ docker compose -f docker-compose.dev.yml exec -e ACCUPEDIA_BOOTSTRAP_ADMIN_PASSW
---
### Step 3.3: Seed Content & Modules
### Step 3.3: Seed Commerce Plans
Seeds subscription tiers, billing periods, and pricing from `plans.json`:
```bash
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap commerce
```
---
### Step 3.4: Seed Clinical Content & Modules
Reads the mounted `/app/content` folder, parses templates, and seeds and publishes all 16 clinical modules (`m0001` through `m0042`):
```bash
@ -88,60 +98,8 @@ docker compose -f docker-compose.dev.yml exec backend \
---
### Step 3.4: Seed Clinical Media Assets (Images to MinIO)
Seeds all 787 anatomical images, channel pathways, and charts across the 4 visual modules into MinIO object storage (`accupedia-media` bucket) and links them to their respective content items in PostgreSQL:
**Option A (Recommended — Automated 1-line loop for all 4 modules):**
```bash
for m in m0001-acupuncture-points m0002-ear-acupuncture m0003-scalp-acupuncture m0031-nutrition; do
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap media \
--manifest /app/content/$m/media.json \
--media-root /app/content/$m
done
```
**Option B (Run module-by-module individually):**
```bash
# 1. Acupuncture Points (418 images — acupoints, channels, and extraordinary vessels like Chong Mai)
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap media \
--manifest /app/content/m0001-acupuncture-points/media.json \
--media-root /app/content/m0001-acupuncture-points
# 2. Ear Acupuncture (336 images — ear reflexology points)
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap media \
--manifest /app/content/m0002-ear-acupuncture/media.json \
--media-root /app/content/m0002-ear-acupuncture
# 3. Scalp Acupuncture (18 images — scalp zones)
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap media \
--manifest /app/content/m0003-scalp-acupuncture/media.json \
--media-root /app/content/m0003-scalp-acupuncture
# 4. Nutrition (15 images — dietary reference charts)
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap media \
--manifest /app/content/m0031-nutrition/media.json \
--media-root /app/content/m0031-nutrition
```
---
### Step 3.5: Seed Commerce Plans
Seeds subscription plans, billing periods, pricing, and links them to the seeded modules from `/app/content/plans.json`:
```bash
docker compose -f docker-compose.dev.yml exec backend \
acupedia-bootstrap commerce --plans /app/content/plans.json
```
---
### Step 3.6: Validate Database Integrity
Verifies all 9 required tables exist, counts roles, permissions, modules, published content items, and seeded media assets:
### Step 3.5: Validate Database Integrity
Verifies all 9 required tables exist, counts roles, permissions, modules, and published content items:
```bash
docker compose -f docker-compose.dev.yml exec backend \
@ -164,7 +122,7 @@ Expected output:
"permission_count": 6,
"module_count": 16,
"content_count": 2476,
"media_asset_count": 787,
"media_asset_count": 0,
"access_plan_count": 2,
"missing_tables": []
}