-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ca4a0af
Showing
31 changed files
with
6,558 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*/.DS_Store | ||
*.DS_Store | ||
node_modules/.DS_Store | ||
node_modules/cssstyle/.DS_Store | ||
node_modules | ||
*.env | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
ingredients: [ | ||
{ name: "Bananas", category: "Fruits" }, | ||
{ name: "Apples", category: "Fruits" }, | ||
{ name: "Oranges", category: "Fruits" }, | ||
{ name: "Strawberries", category: "Fruits" }, | ||
{ name: "Grapes", category: "Fruits" }, | ||
{ name: "Blueberries", category: "Fruits" }, | ||
{ name: "Raspberries", category: "Fruits" }, | ||
{ name: "Lemons", category: "Fruits" }, | ||
{ name: "Limes", category: "Fruits" }, | ||
{ name: "Avocados", category: "Fruits" }, | ||
{ name: "Tomatoes", category: "Vegetables" }, | ||
{ name: "Carrots", category: "Vegetables" }, | ||
{ name: "Potatoes", category: "Vegetables" }, | ||
{ name: "Onions", category: "Vegetables" }, | ||
{ name: "Garlic", category: "Vegetables" }, | ||
{ name: "Bell Peppers", category: "Vegetables" }, | ||
{ name: "Spinach", category: "Vegetables" }, | ||
{ name: "Broccoli", category: "Vegetables" }, | ||
{ name: "Cauliflower", category: "Vegetables" }, | ||
{ name: "Cucumbers", category: "Vegetables" }, | ||
{ name: "Lettuce", category: "Vegetables" }, | ||
{ name: "Zucchini", category: "Vegetables" }, | ||
{ name: "Mushrooms", category: "Vegetables" }, | ||
{ name: "Green Beans", category: "Vegetables" }, | ||
{ name: "Asparagus", category: "Vegetables" }, | ||
{ name: "Eggs", category: "Dairy" }, | ||
{ name: "Milk", category: "Dairy" }, | ||
{ name: "Cheese", category: "Dairy" }, | ||
{ name: "Butter", category: "Dairy" }, | ||
{ name: "Yogurt", category: "Dairy" }, | ||
{ name: "Cream", category: "Dairy" }, | ||
{ name: "Sour Cream", category: "Dairy" }, | ||
{ name: "Bread", category: "Bakery" }, | ||
{ name: "Bagels", category: "Bakery" }, | ||
{ name: "Croissants", category: "Bakery" }, | ||
{ name: "Tortillas", category: "Bakery" }, | ||
{ name: "Rice", category: "Grains" }, | ||
{ name: "Pasta", category: "Grains" }, | ||
{ name: "Quinoa", category: "Grains" }, | ||
{ name: "Oats", category: "Grains" }, | ||
{ name: "Chicken Breast", category: "Meat" }, | ||
{ name: "Ground Beef", category: "Meat" }, | ||
{ name: "Bacon", category: "Meat" }, | ||
{ name: "Sausage", category: "Meat" }, | ||
{ name: "Pork Chops", category: "Meat" }, | ||
{ name: "Steak", category: "Meat" }, | ||
{ name: "Salmon", category: "Seafood" }, | ||
{ name: "Shrimp", category: "Seafood" }, | ||
{ name: "Tilapia", category: "Seafood" }, | ||
{ name: "Tuna", category: "Seafood" }, | ||
{ name: "Cod", category: "Seafood" }, | ||
{ name: "Cereal", category: "Cereals" }, | ||
{ name: "Granola", category: "Cereals" }, | ||
{ name: "Flour", category: "Baking" }, | ||
{ name: "Sugar", category: "Baking" }, | ||
{ name: "Baking Powder", category: "Baking" }, | ||
{ name: "Baking Soda", category: "Baking" }, | ||
{ name: "Honey", category: "Baking" }, | ||
{ name: "Olive Oil", category: "Oils" }, | ||
{ name: "Vegetable Oil", category: "Oils" }, | ||
{ name: "Butter", category: "Oils" }, | ||
{ name: "Peanut Butter", category: "Condiments" }, | ||
{ name: "Jam", category: "Condiments" }, | ||
{ name: "Ketchup", category: "Condiments" }, | ||
{ name: "Mustard", category: "Condiments" }, | ||
{ name: "Mayonnaise", category: "Condiments" }, | ||
{ name: "Soy Sauce", category: "Condiments" }, | ||
{ name: "Hot Sauce", category: "Condiments" }, | ||
{ name: "Salt", category: "Spices" }, | ||
{ name: "Pepper", category: "Spices" }, | ||
{ name: "Cinnamon", category: "Spices" }, | ||
{ name: "Chili Powder", category: "Spices" }, | ||
{ name: "Garlic Powder", category: "Spices" }, | ||
{ name: "Paprika", category: "Spices" }, | ||
{ name: "Cumin", category: "Spices" }, | ||
{ name: "Basil", category: "Spices" }, | ||
{ name: "Oregano", category: "Spices" }, | ||
{ name: "Thyme", category: "Spices" }, | ||
{ name: "Parsley", category: "Spices" }, | ||
{ name: "Vinegar", category: "Condiments" }, | ||
{ name: "Soy Milk", category: "Dairy Alternatives" }, | ||
{ name: "Almond Milk", category: "Dairy Alternatives" }, | ||
{ name: "Coconut Milk", category: "Dairy Alternatives" }, | ||
{ name: "Tofu", category: "Vegetarian" }, | ||
{ name: "Tempeh", category: "Vegetarian" }, | ||
{ name: "Lentils", category: "Vegetarian" }, | ||
{ name: "Chickpeas", category: "Vegetarian" }, | ||
{ name: "Black Beans", category: "Vegetarian" }, | ||
{ name: "Kidney Beans", category: "Vegetarian" }, | ||
{ name: "Chips", category: "Snacks" }, | ||
{ name: "Crackers", category: "Snacks" }, | ||
{ name: "Popcorn", category: "Snacks" }, | ||
{ name: "Cookies", category: "Snacks" }, | ||
{ name: "Ice Cream", category: "Frozen" }, | ||
{ name: "Frozen Pizza", category: "Frozen" }, | ||
{ name: "Frozen Vegetables", category: "Frozen" }, | ||
{ name: "Frozen Fruit", category: "Frozen" }, | ||
{ name: "Orange Juice", category: "Beverages" }, | ||
{ name: "Apple Juice", category: "Beverages" }, | ||
{ name: "Soda", category: "Beverages" }, | ||
{ name: "Coffee", category: "Beverages" }, | ||
{ name: "Tea", category: "Beverages" }, | ||
{ name: "Beer", category: "Alcohol" }, | ||
{ name: "Wine", category: "Alcohol" } | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const mongoose = require('mongoose') | ||
const Schema = mongoose.Schema; | ||
|
||
const Ingredient = new Schema({ | ||
name: { | ||
type: String, | ||
required: true, | ||
}, | ||
group: { | ||
type: String, | ||
required: true, | ||
}, | ||
stores: [{ | ||
name: { | ||
type: String, | ||
required: true, | ||
}, | ||
aisle: { | ||
type: String, | ||
}, | ||
price: { | ||
type: Number, | ||
} | ||
}] | ||
}) | ||
|
||
module.exports = mongoose.model('Ingredient', Ingredient); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const mongoose = require('mongoose') | ||
const Schema = mongoose.Schema; | ||
|
||
const List = new Schema({ | ||
name: { | ||
type: String, | ||
required: true, | ||
}, | ||
notes: { | ||
type: String, | ||
}, | ||
ingredients: [{ | ||
item: { | ||
type: Schema.Types.ObjectId, | ||
ref: 'Ingredient' | ||
}, | ||
quantity: { | ||
type: Number, | ||
}, | ||
unit: { | ||
type: String, | ||
} | ||
}], | ||
|
||
}) | ||
|
||
module.exports = mongoose.model('List', List); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const mongoose = require('mongoose') | ||
const Schema = mongoose.Schema; | ||
|
||
const Menu = new Schema({ | ||
date: { | ||
type: Date, | ||
required: true, | ||
}, | ||
meals: [{ | ||
main: { | ||
type: Schema.Types.ObjectId, | ||
ref: 'Recipe' | ||
}, | ||
sides: [{ | ||
recipe: { | ||
type: Schema.Types.ObjectId, | ||
ref: 'Recipe' | ||
}, | ||
ingredient: { | ||
type: Schema.Types.ObjectId, | ||
ref: 'Ingredient' | ||
} | ||
}], | ||
type: { | ||
type: String, | ||
enum: ['Breakfast', 'Lunch', 'Dinner', 'Snack', 'Dessert'] | ||
} | ||
|
||
}] | ||
|
||
|
||
|
||
}) | ||
|
||
module.exports = mongoose.model('Menu', Menu); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
const mongoose = require('mongoose') | ||
const Schema = mongoose.Schema; | ||
|
||
const Recipe = new Schema({ | ||
name: { | ||
type: String, | ||
required: true, | ||
}, | ||
description: { | ||
type: String, | ||
}, | ||
instructions: [{ | ||
type: String, | ||
// required: true, | ||
}], | ||
ingredients: [{ | ||
item: { | ||
type: Schema.Types.ObjectId, | ||
ref: 'Ingredient' | ||
}, | ||
quantity: { | ||
type: Number, | ||
}, | ||
unit: { | ||
type: String, | ||
} | ||
}], | ||
cookTime: { | ||
length: { | ||
type: Number, | ||
// required: true, | ||
}, | ||
unit: { | ||
type: String, | ||
// required: true, | ||
} | ||
}, | ||
cookTemp: { | ||
temp: { | ||
type: Number, | ||
// required: true, | ||
}, | ||
unit: { | ||
type: String, | ||
// required: true, | ||
} | ||
} | ||
|
||
}) | ||
|
||
module.exports = mongoose.model('Recipe', Recipe); |
Oops, something went wrong.