Not a price book
How these prices work
Every price in this store is a demo price. The 362 items stand in for lines Associated Systems would drop-ship from ADI Global Distribution, Anixter (Wesco), DMP, and Potter. They are not those companies' catalogs, and the numbers are not their prices or an Associated Systems sell price.
Where the list lives
One file, data/catalog.json, holds the suppliers, the categories, and every item. The store reads that file. A later price list does not need a database.
Swap in a CSV
A price-only sheet can update figures that are already in the file. A full sheet can also add items. Rows you leave out of the CSV stay as they are. If any row is wrong, the file is not changed.
npm run import:prices -- data/sample-price-update.csv --dry-run npm run import:prices -- data/sample-price-update.csv
Columns: sku, name, manufacturer, model, supplier, category, description, demoPrice, unit, availability. Supplier tags are ADI, Anixter (Wesco is accepted as Anixter), DMP, and Potter. After an import, restart or rebuild the store so the new demo prices show up. The README in the project has the full column rules.
Every demoPrice in this file is a fictional figure for the Associated Systems drop-ship demo. It is not a quote from ADI Global Distribution, Anixter, Wesco, DMP, Potter Electric Signal, any manufacturer, or Associated Systems. Do not give this number to a customer as a sell price.