love-ecommerce-template 1.0.0 · SDK 1.2.0

Sample data

Demo data is plain JSON — no database. The preview reads one dataset at a time; carts, logins and orders live in memory and start afresh when you switch.

Built-in datasets

IdNameStoresProductsCategoriesDescription
normalNormal (2 stores)2 stores (shopper chooses)427Typical store: two active branches plus one closed branch, so shoppers must choose a store. 30 products in 6 departments (variants, low stock, sold-out items), coupons, delivery areas, two payment methods and a customer account.
single-storeSingle storeone store (auto-selected)306Exactly one active store: it is selected automatically, there is no store chooser and no "Shopping at" button. Full catalogue.
smallSmall shopone store (auto-selected)41One store, one category, one brand and four products: brand blocks hide (they need 2+ brands), promotion slots beyond the first category hide, there is no pagination.
emptyEmpty catalogueone store (auto-selected)00One store with no categories, brands or products and no delivery areas. Use it to check empty states: every product, category, brand and promotion block should hide or show a friendly message.
largeLarge catalogue3 stores (shopper chooses)66012Three stores, 12 categories, 24 brands and 600 products in the first store (30 pages), to check pagination, long category lists, mega menus and performance.
edge-casesEdge cases2 stores (shopper chooses)154Awkward but valid data: very long names and descriptions, non-Latin text and emoji, HTML-like text (must be shown as text), missing and broken images, an external image URL, zero prices, prices in the millions, everything sold out in one category, a product with many variants, and a store without opening hours or description.
no-storesSingle-site (no stores)single-site (no stores configured)126No store records at all: the application runs as a single shop (legacy mode). Store placeholders such as {STORE_PHONE} are empty and there is no store chooser.
stores-pausedAll stores closedonline shopping paused (no active store)66Stores exist but none is active: the storefront shows "Online shopping is paused" and no products.

Your own datasets

Add .json files to your template's sample-data/ folder; they appear as project:<file name> in the Studio, node sdk preview --dataset and node sdk test --dataset. Start from a copy of a built-in file in the SDK's datasets/ folder.

Format

{
  "name": "My data", "description": "…", "notes": ["…"],
  "store":      { "name", "description", "currency", "currencySymbol", "taxRate", "minOrderAmount",
                  "onlineOrders", "urlStructure": "hash"|"path", "timezone", "lowStockThreshold" },
  "payments":   [ { "id": "cash_on_delivery"|"bank_transfer"|…, "name", "description", "enabled", "details" } ],
  "stores":     [ { "id", "name", "description", "status": "active"|"inactive", "address", "city", "state", "zip",
                    "phone", "email", "timezone", "hours": { "monday": {"open","close"}|null, … },
                    "taxRate", "minOrderAmount", "pickup", "delivery" } ],
  "categories": [ { "name", "subcategories": ["…"] } ],
  "brands":     [ { "name" } ],
  "products":   [ { "id", "storeId"|null, "name", "description", "category", "subcategory", "brand", "currency",
                    "images": ["/uploads/sample/x.svg" | "/image/x.png" | "https://…"], "tags", "weight",
                    "popularity", "createdAt", "status": "active"|"draft", "lowStockThreshold",
                    "variants": [ { "id", "name", "sku", "price", "stock", "attributes": {}, "active" } ] } ],
  "coupons":    [ { "code", "storeId"|null, "type": "percentage"|"fixed"|"free_shipping", "value",
                    "minOrderAmount", "startsInDays", "expiresInDays" } ],
  "deliveryAreas": [ { "id", "name", "storeId"|null, "places": [ { "id", "name", "fee", "freeOver", "feeFormula" } ] } ],
  "customers":  [ { "id", "name", "email", "password", "phone" } ],
  "images":     { "file.svg": { "label", "color" } }      (pictures the preview draws for /uploads/sample/…)
}
Generated 2026-10-01 11:59 UTC from the application source (contract 7075c14c24bbaf06).