Skip to content

gatsby-inc/shopify-csv-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopify-csv-generator

A faker-based generator for Shopify sample data, forked from @davefreiman. Created for use with gatsby-source-shopify.

Images are randomly requested from Unsplash and are copyright the individual photographers.

Installation

Make sure you have the Faker gem installed:

gem install faker

Run the script with an argument specifying how many products you want. It will generate three variants per product, so if you request 20 products it will generate 60 SKUs:

ruby faker_script.rb 20

The shopify_data.csv file will be generated in the project root directory. All you have to do is navigate to https://<shopifystore.com>/admin/products and find the "Import" button. Then select the generated file and boom - Your store now has dummy data.

Examples

The examples directory includes pre-generated files for 100 and 30,000 SKUs. These are not the direct output from the script, but have been imported and then re-exported from a Shopify store. This means that all images are pre-imported and have cdn.shopify.com URLs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%