Code Monkey home page Code Monkey logo

easyeats's Introduction

EasyEats

Do you ever find it hard to know what you should cook today? No problem! Introducing EasyEats, the web app that recommends you recipes based on your kitchen storage.

Dataset

The application uses a recipe ingredients and reviews dataset from Kaggle to create a SQLite database of recipes.

Architecture

Developed with React as frontend, Node.js as backend, and SQLite3 as database. Project also uses Python for setting up the database.

Setup & Run

Initialize database

cd db
python3 initialize.py

Start server

cd server
node server.py

Start React application

cd app
npm run start

easyeats's People

Contributors

robertmartinis avatar jakobpaulsson avatar niclasgardsuu avatar

Stargazers

Joel Sikström avatar

Watchers

 avatar

Forkers

robertmartinis

easyeats's Issues

Previous recipes backend functionality

When a recipe is completed, the recipeID for that recipe should be added to the PreviousRecipe column so it look something like this: "7012,13042,8064".

Removing a preset should unselect that preset

At the moment, if a preset is selected and that particular preset is then deleted, it is still marked as selected. Doesn't cause any crashes or errors but might be incorrect behaviour?

Add filter for common ingredients only

We should remove the two tabs that are in recipes and add a checkbox that says something along the lines of "Only show recipes with 100% common ingredients", which will filter out all recipes that has any ingredient that is not in your inventory. The scoring should still work with the metrics but exclude the common ingredient metric.

Add default presets

There should be some default presets since we assume most users won't want to create their own. One of them should also be selected by default

Ingredients tests are failing

  • Should not be able to add ingredient with invalid amount and unit
  • Should not be able to add ingredient with invalid unit
ingredients.cy.js.mp4

Use localstorage for getting user ingredients

An users ingredients should be fetched once when the app starts and be put in localstorage, and components should refer to localstorage when requiring an users ingredients. This prevents unnecessary DB-fetches when we navigate to a different page. Localstorageshould then be updated when an user add or remove ingredients.

Hover preset show name

Currently, you can't see the names of presets in the recipes page. Hovering a preset should show the name of the preset.

Match percentage is broken in some cases

Replicate:

  1. Add gin as the only ingredient
  2. Create preset with all as zeroes except for common ingredients metric
  3. There is a 100% match in the recipes even though it doesn't contain gin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.