Giter Club home page Giter Club logo

meal-planner's Introduction

Meal planner

  • A web application to plan what you eat daily in accordance to dietary needs.
  • Please find the demo here.
  • This project was bootstrapped with create-react-app
  • This project does not make use of any external CSS frameworks. Excuse the sassiness. ๐Ÿ˜‰
  • This project has been designed mobile-first and makes use of Flexbox extensively.

Technology tags

  • React
  • SASS
  • Flexbox
  • Edamam recipe search API

Future Ideas

  • Adding a grocery list aggregating all ingredients from the suggested meals
  • Creating more selection criteria for health concerns such as PCOD, Diabetes, etc by collecting and analyzing data from several health and nutrition websites.

Project architecture

|-src
    |-components
      |-shared : All the components shared across the application
      |-page : Container components that serve as pages and use the shared components
    |-partials : Sass folder to include any partial sass files and a manifest file that imports all partials
    |-utils : Helper folder to contain any files that help the application, in this case, data fetching from the Edamam API
    |-App.js : The container component that decides how the app is navigated
    |-index.js : The JavaScript entry file 
    |-global.scss : Sass file that contains global application styles

Learnings through this project

  • The Edamam API allows to query for recipes based on several parameters. However not all of them return apt results. I had to tweak my survey form to include only those fields that successfully returned some results.
  • Having components that don't require to maintain state should be written as stateless components. Some of the advantages of this approach is nicely discussed in this article.

Note to fork and run this project

  • Run npm i
  • Please replace the lines in the file : meal-planner/src/utils/data/data.js with your own edamam ID and edamam API key. Thanks!
const API = {
  ID : "YOUR_EDAMAM_ID",
  KEY : "YOUR_EDAMAM_API_KEY",
  URL : "https://api.edamam.com/search?",
}

Make sure you make an API ID and Key from the Recipe Search API

  • npm run start to start the development server

meal-planner's People

Contributors

arimai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

meal-planner's Issues

Missing files (?)

Greetings!

Thanks for creating a really nice, and intuitive, demo for Edamam API!

I'm trying to use the demo in my local machine. Unfortunately, I'm getting this error when I access localhost:3000:

Failed to compile
./src/utils/data/index.js
Module not found: Can't resolve '../../data' in '/home/echo66/tripleg/third-party-demos/meal-planner/src/utils/data'
This error occurred during the build time and cannot be dismissed.

My suspicion is that this is the results of some files you didn't commit.

Feature Request - Tabulate ingredients (shopping list), calories and macronutrients

Hi Ira! I'm a big fan of this project, I think it's brilliant. I have <1 year experience seriously programming but would love to contribute the features referenced above. I'm gonna branch the repo and take some time to learn the codebase, please keep your eyes peeled for my PR's! (Also I have never made a PR request before so please be patient with me)

I'd love to touch base outside of GitHub, please add me on LinkedIn and we can coordinate contact for any questions I have about the repo. Thanks!

Cannot read property '0' of undefined in weekly planner view

Hello, I'm seeing that after I go through the onboarding flow in the demo app I see the following error:

image

TypeError: Cannot read property '0' of undefined
at index.js:12
at p (index.js:44)
at d (index.js:63)
at beginWork (react-dom.production.min.js:132)
at o (react-dom.production.min.js:161)
at i (react-dom.production.min.js:161)
at u (react-dom.production.min.js:162)
at E (react-dom.production.min.js:169)
at w (react-dom.production.min.js:168)

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.