Skip to content

Instantly share code, notes, and snippets.

@heardk
Last active December 11, 2016 14:47
Show Gist options
  • Save heardk/02edb3135ed50ab0a641 to your computer and use it in GitHub Desktop.
Save heardk/02edb3135ed50ab0a641 to your computer and use it in GitHub Desktop.
{
products: [
'{{repeat(10, 10)}}',
{
_id: '{{objectId()}}',
index: '{{index()}}',
guid: '{{guid()}}',
isActive: '{{bool()}}',
img_preview: 'http://placehold.it/32x32',
img_main: 'http://placehold.it/64x64',
name: '{{lorem(3, "words")}}',
description: '{{lorem(10, "words")}}',
long_description: '{{lorem(1, "paragraphs")}}',
brand: '{{company().toUpperCase()}}',
price: '{{integer(1,999,"$0,0.00")}}',
created: '{{date(new Date(2014, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss Z")}}',
tags: [
'{{repeat(5)}}',
'{{lorem(1, "words")}}'
],
variants: [
'{{repeat(3)}}',
{
id: '{{index()}}',
guid: '{{guid()}}',
name: '{{lorem(2, "words")}}',
variant_type: '{{random("size","color")}}',
price: '{{integer(1,999,"$0,0.00")}}',
img_preview: 'http://placehold.it/32x32'
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment