Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzanorazman committed Nov 3, 2019
1 parent cda5c8a commit 0c67573
Show file tree
Hide file tree
Showing 13 changed files with 673 additions and 283 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<h1 align="center">FridgeMe</h1>

## Inspiration

Have you ever stared upon your lowly little fridge and thought to yourself, how could you make anything at all with all the crap you keep in your fridge? Fret no more! Being a college student myself, I too am always lazy to cook food, and every time I do want to make something, I would find myself not knowing what to do with all the food ingredients I have in my fridge, and those things will end up long in the fridge before you realize they have become bad. That's wasteful. That's bad. It's time for a change.

## What it does

It's a mobile app that lets you take a picture of your groceries and the food items in your fridge and the app will intelligently tell you what you can make (i.e. food recipes) based on what you have in your fridge. It also inventories the food items in your fridge and give them a freshness score so you know what's in there and what's going to go bad soon.

## How we built it

We used [React Native](https://facebook.github.io/react-native/) for the mobile app, connected it with Google's [Vision API](https://cloud.google.com/vision/) for image recognition, and extracted recipe data from the [Spoonacular API](https://spoonacular.com/food-api).

## Challenges we ran into

This is our first time using Google Cloud's Vision API. It took us some time trying to connect the Vision API to the app. Also, we weren't familiar with React Native, so there was a lot of first-times and frustrations.

## Accomplishments that we're proud of

We're proud that we've been able to produce a visually compelling app. We spent a lot of time working on the UI part, and I think it shows. Also, considering that React Native is cross platform, we're proud that we're able to create a product that works on both ends of the mobile ecosystem.

## What we learned

That due planning is important, and CSS is hard (CSS **is** a programming language, fight me)

## What's next for FridgeMe

We plan to further polish the app and think of ways to make the UI better. Also, deploying it to app stores would be a dream.

**This project is a submission for [SquirrelHacks (HackISU) 2019](https://hackisu.stuorg.iastate.edu). Teammates are [Mirza Nor Azman](https://github.com/mirzanorazman) and [Mujahid Anuar](https://github.com/mujahidfa). At the time of the hackathon, all are students from University of Wisconsin-Madison.**

Here's the link to the [Devpost](https://devpost.com/software/fridgeme) submission.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@
},
"dependencies": {
"expo": "^35.0.0",
"expo-image-picker": "~7.0.0",
"expo-permissions": "~7.0.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react-native-circular-progress": "^1.3.4",
"react-native-elements": "^1.2.7",
"react-native-gesture-handler": "~1.3.0",
"react-native-svg": "9.9.5",
"react-native-vector-icons": "^6.6.0",
"react-native-web": "^0.11.7",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^1.10.3",
"expo-image-picker": "~7.0.0",
"expo-permissions": "~7.0.0"
"react-navigation-stack": "^1.10.3"
},
"devDependencies": {
"babel-preset-expo": "^7.1.0"
Expand Down
50 changes: 27 additions & 23 deletions src/data/fridge_items.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,42 @@ const fridge_items = [
{
id: 1,
name: "Apple",
quantity: 12,
icon: "🍎"
},
{
id: 2,
name: "Banana",
quantity: 21,
icon: "🍌"
},
{
id: 3,
name: "Cucumber",
quantity: 2,
icon: "🥒"
quantity: 1,
freshness_rating: 1,
image_path:
"https://cdn0.iconfinder.com/data/icons/essentials-volume-6/128/apple-512.png"
},
{
id: 4,
name: "Potato",
quantity: 3,
icon: "🥔"
},
{
id: 5,
name: "Carrot",
quantity: 5,
icon: "🥕"
freshness_rating: 7,
image_path:
"https://cdn2.iconfinder.com/data/icons/food-drink-60/50/1F954-potato-512.png"
},
{
id: 6,
name: "Broccoli",
name: "Eggs",
quantity: 8,
icon: "🥦"
freshness_rating: 7,
image_path:
"https://cdn2.iconfinder.com/data/icons/food-98/64/Food_eggs-512.png"
},
// {
// id: 7,
// name: "Eggplant",
// quantity: 2,
// freshness_rating: 3,
// image_path:
// "https://cdn3.iconfinder.com/data/icons/linefillix-vegetables/128/vegetables_food-18-512.png"
// },
{
id: 7,
name: "Milk",
quantity: 1,
freshness_rating: 8,
image_path:
"https://cdn4.iconfinder.com/data/icons/food-drink-11/128/milk-512.png"
}
];

Expand Down
Binary file modified src/resources/img/apple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/resources/img/banana.png
Binary file not shown.
Binary file modified src/resources/img/bread.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/resources/img/imageURL.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const URLs = [
{
name: "Orange",
imageURL:
"https://cdn2.iconfinder.com/data/icons/food-98/64/Food_orange-512.png"
},
{
name: "Bell pepper",
imageURL:
"https://cdn3.iconfinder.com/data/icons/healthy-food-9/64/pepper-bell-healthy-vegetable-512.png"
},
{
name: "unknown",
imageURL:
"https://cdn4.iconfinder.com/data/icons/food-100/32/unknown_vegetable_32x32-512.png"
},
{
name: "Apple",
image_path:
"https://cdn0.iconfinder.com/data/icons/essentials-volume-6/128/apple-512.png"
},
{
name: "Potato",
image_path:
"https://cdn2.iconfinder.com/data/icons/food-drink-60/50/1F954-potato-512.png"
}
];

export default URLs;
Binary file added src/resources/img/potatoes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0c67573

Please sign in to comment.