docs: update routing docs and seed script for production routing changes
Some checks failed
Some checks failed
Reflect the production routing refactor (ce5b54f): document store dashboard
double-mounting, per-platform subdomain overrides via StorePlatform.custom_subdomain,
get_resolved_store_code dependency, and /merchants/ reserved path. Update seed
script to populate custom_subdomain and StoreDomain.platform_id for demo data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -140,11 +140,19 @@ This runs:
|
||||
|
||||
### Stores Created
|
||||
|
||||
| Code | Name | Subdomain | Theme | Custom Domain |
|
||||
|------|------|-----------|-------|---------------|
|
||||
| ORION | Orion | orion | modern | orion.shop |
|
||||
| FASHIONHUB | Fashion Hub | fashionhub | vibrant | fashionhub.store |
|
||||
| BOOKSTORE | The Book Store | bookstore | classic | (none) |
|
||||
| Code | Name | Subdomain | Theme | Custom Domain | Notes |
|
||||
|------|------|-----------|-------|---------------|-------|
|
||||
| WIZATECH | WizaTech | wizatech | modern | wizatech.shop (OMS) | `custom_subdomain="wizatech-rewards"` on Loyalty `StorePlatform` |
|
||||
| WIZAGADGETS | WizaGadgets | wizagadgets | modern | (none) | |
|
||||
| WIZAHOME | WizaHome | wizahome | classic | (none) | |
|
||||
| FASHIONHUB | Fashion Hub | fashionhub | vibrant | fashionhub.store (Loyalty) | |
|
||||
| FASHIONOUTLET | Fashion Outlet | fashionoutlet | vibrant | (none) | |
|
||||
| BOOKSTORE | The Book Store | bookstore | classic | (none) | |
|
||||
| BOOKDIGITAL | BookWorld Digital | bookdigital | modern | (none) | |
|
||||
|
||||
**Per-platform subdomain demo:** WizaTech has both OMS and Loyalty subscriptions. On the Loyalty platform, its `StorePlatform.custom_subdomain` is set to `"wizatech-rewards"`, meaning `wizatech-rewards.rewardflow.lu` resolves to the same store as `wizatech.omsflow.lu`.
|
||||
|
||||
**Multi-platform custom domains:** `StoreDomain` records now include a `platform_id` linking the domain to a specific platform. For example, `wizatech.shop` is linked to the OMS platform and `fashionhub.store` is linked to the Loyalty platform.
|
||||
|
||||
### Products Created
|
||||
|
||||
@@ -217,15 +225,15 @@ python scripts/seed_database.py [--reset] [--minimal]
|
||||
- Username: `admin`
|
||||
- Password: `admin123`
|
||||
|
||||
### Store Storefronts
|
||||
- ORION: `http://localhost:8000/storefront/ORION`
|
||||
- FASHIONHUB: `http://localhost:8000/storefront/FASHIONHUB`
|
||||
- BOOKSTORE: `http://localhost:8000/storefront/BOOKSTORE`
|
||||
### Store Storefronts (Development)
|
||||
- WIZATECH (OMS): `http://localhost:8000/platforms/oms/storefront/WIZATECH/`
|
||||
- WIZATECH (Loyalty): `http://localhost:8000/platforms/loyalty/storefront/WIZATECH/`
|
||||
- FASHIONHUB: `http://localhost:8000/platforms/loyalty/storefront/FASHIONHUB/`
|
||||
- BOOKSTORE: `http://localhost:8000/platforms/oms/storefront/BOOKSTORE/`
|
||||
|
||||
### Theme Editors
|
||||
- ORION Theme: `http://localhost:8000/admin/stores/ORION/theme`
|
||||
- FASHIONHUB Theme: `http://localhost:8000/admin/stores/FASHIONHUB/theme`
|
||||
- BOOKSTORE Theme: `http://localhost:8000/admin/stores/BOOKSTORE/theme`
|
||||
### Store Dashboards (Development)
|
||||
- WIZATECH: `http://localhost:8000/platforms/oms/store/WIZATECH/dashboard`
|
||||
- FASHIONHUB: `http://localhost:8000/platforms/loyalty/store/FASHIONHUB/dashboard`
|
||||
|
||||
## Example Output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user