To create your catalog in Moltin you'll need node.js
Sign up for Moltin and create a new store. Go to the store settings to get your API keys.
Set up two environment variables
NEW_SITE_CLIENT_ID=
NEW_SITE_SECRET=
npm install
app.js
and supply the path to your data file as a command line argumentnode app.js "/Users/<yourself>/Downloads/apparel.csv"
If you are re-running the script, you can selectively skip certain steps or require that a script first cleans up your store:
node app.js "path" --skip=<step> --skip=<another step>
You can clean: products
, categories
, brands
, and files
(images). To request that multiple entities be cleaned please use --clean=<entity>
for each entity.
node app.js "path" --clean=products