Bootstrap separate multi-market commerce application workspace
davoodmehraban89 committed
Oct 13, 2026 at 23:02 UTC
984866f66f581d90a05f6faf563e96cf6323fc84
1 file changed
+54
commerce/README.md
new
+54
@@ -0,0 +1,54 @@
1
+# Medusa Commerce — development bootstrap
2
+
3
+This folder is the planned application workspace for the **single-merchant, five-market storefront**. It is separate from the upstream Medusa monorepo packages to reduce merge conflicts.
4
+
5
+## Supported target markets
6
+
7
+| Country | ISO code | Currency | Initial commercial focus |
8
+| --- | --- | --- | --- |
9
+| Iran | IR | IRR | Electronics and mixed categories |
10
+| UAE | AE | AED | Iran-origin products |
11
+| Oman | OM | OMR | Iran-origin products |
12
+| Iraq | IQ | IQD | Iran-origin products |
13
+| Qatar | QA | QAR | Iran-origin products |
14
+
15
+Persian (`fa-IR`, RTL) and English (`en`, LTR) are confirmed. Arabic remains a proposed enhancement, not an approved release requirement.
16
+
17
+## Architectural boundaries
18
+
19
+- **Medusa backend and Admin:** retain upstream implementation until a reproducible development environment is validated.
20
+- **Storefront:** separate application, to be added after the backend's API contracts and runtime are verified.
21
+- **Inventory:** per-stock-location inventory, with Iran as the principal origin; overseas warehouse locations are optional until real locations are confirmed.
22
+- **Checkout:** region-specific payment and fulfillment provider adapters; test-mode only until merchant authorization, contracts and compliance checks pass.
23
+- **Pricing:** country-specific prices; IRR is the canonical rial unit, and toman presentation must be explicit. Never perform implicit currency conversion.
24
+- **Origin:** a product's country of manufacture is separate from its stock location and shipment origin.
25
+
26
+## Development milestones
27
+
28
+1. **Environment verification:** Node 22 and repository-pinned Yarn 3.2.1; dependency install, build, test and boot logs.
29
+2. **Backend instance:** create a dedicated Medusa project/instance backed by PostgreSQL, not an ad hoc edit of upstream packages.
30
+3. **Storefront shell:** product listing, product detail, cart, localized UI and responsive layout.
31
+4. **Commerce integration:** country selection, regional prices, stock-location availability, test checkout and order confirmation.
32
+5. **Quality gates:** automated tests for all five markets, RTL/LTR, shipping eligibility, inventory reservations and secrets handling.
33
+6. **Staging:** health checks, monitoring, backups, restore and rollback verification.
34
+
35
+## Local prerequisite commands (not yet executed)
36
+
37
+```bash
38
+node --version # should be v22.x
39
+corepack enable
40
+yarn --version # repo pins 3.2.1
41
+yarn install --immutable
42
+```
43
+
44
+The root repository is a large upstream source monorepo. Installation may require substantial resources. No successful installation or runtime has yet been demonstrated.
45
+
46
+## Release blockers
47
+
48
+- Merchant entity and PSP onboarding per market
49
+- Real warehouse locations and carriers
50
+- Specific SKUs and applicable product/export/import restrictions
51
+- Tax, customs, refund and consumer-policy requirements
52
+- Staging hosting, domain, secrets and backup policy
53
+
54
+See `PROJECT_STATUS.md` for the verified project record.