Skip to content

Instantly share code, notes, and snippets.

@aidansmyth
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aidansmyth/1c9da8157aa9912920ef to your computer and use it in GitHub Desktop.
Save aidansmyth/1c9da8157aa9912920ef to your computer and use it in GitHub Desktop.
Food recipe list recipe for http://www.json-generator.com
[
'{{repeat(15, 30)}}',
{
_id: '{{objectId()}}',
index: '{{index()}}',
title: '{{lorem(4, "words")}}',
author: [
{
uid: '{{index()}}',
name: '{{firstName()}} {{surname()}}',
email: '{{email([random])}}',
twitter: '',
facebook: ''
}],
created: '{{date(new Date(2014, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss Z")}}',
picture: 'http://placehold.it/256x256',
course: '{{random("Bread", "Breakfast", "Dessert", "Drink", "Side dish", "Snack", "Pies", "Main", "Salad", "Starter", "Soup")}}',
cuisine: '{{random("None", "American", "French", "Chinese", "Greek", "Indian", "Japanese", "Mexican", "Spanish")}}',
diettype: '{{random("None", "Dairy-free", "Egg-free", "Gluten-free", "Nut-free", "Pregnancy-friendly", "Shellfish-free", "Vegan", "Vegetarian")}}',
tags: [
'{{repeat(1, 4)}}',
'{{random("Quick", "Sweet", "Savoury", "Bitter", "Umami")}}'
],
seetings: [
{
measurements: '{{random("Imperial", "Metric")}}',
temprature: '{{random("Celsius", "Fahrenheit")}}'
}
],
ingredients: [
'{{repeat(3, 10)}}',
{
name: '{{lorem(2, "words")}}',
measure: '{{random("None", "tablespoon", "teaspoon", "fluid ounce", "cup", "pints", "quart", "pound", "milliliter", "gram", "gallon", "Roll", "Chill", "Pour", "Heat", "Shred", "Dice", "Toss", "Mix")}}',
quantity: '{{integer(1, 8)}}'
}
],
steps: [
'{{repeat(4, 10)}}',
{
stepid: '{{index()}}',
title: '{{lorem(5, "words")}}',
desc: '{{lorem(1, "paragraph")}}',
start: '{{integer(60)}}',
time: '{{integer(30, 1200)}}',
type: '{{random("Chop", "Bake", "Fry", "Boil", "Sear", "Blanch", "Knead", "Sauté", "Garnish", "Rest", "Serve", "Roll", "Chill", "Pour", "Heat", "Shred", "Dice", "Toss", "Mix")}}'
}
],
amount: [
{
type: '{{random("People", "Units",)}}',
amount: '{{integer(1, 8)}}'
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment