Skip to content

Example script used to programatically create a Moltin store catalogue.

Notifications You must be signed in to change notification settings

moltin/import-catalogue-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

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=
  • Install packages
npm install
  • Run app.js and supply the path to your data file as a command line argument
node 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

About

Example script used to programatically create a Moltin store catalogue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published