Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
smith15973 committed Aug 21, 2024
0 parents commit ca4a0af
Show file tree
Hide file tree
Showing 31 changed files with 6,558 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
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






107 changes: 107 additions & 0 deletions Backend/foods.js
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" }
]

27 changes: 27 additions & 0 deletions Backend/models/ingredient.js
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);
27 changes: 27 additions & 0 deletions Backend/models/list.js
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);
35 changes: 35 additions & 0 deletions Backend/models/menu.js
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);
51 changes: 51 additions & 0 deletions Backend/models/recipe.js
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);
Loading

0 comments on commit ca4a0af

Please sign in to comment.