Skip to content
A web app for vegetarian meal planning.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
.DS_Store
.coverage
.gitignore
README.md
model.py
model.pyc
requirements.txt
server.py
server.pyc
tests.py

README.md

MealHub

MealHub is a web app designed to help with vegetarian meal planning. Users search for recipes based on food preferences. A nutrient tracker allows users to plan meals according to recommended daily allowances of major macronutrients. Integration with Google Calendar allows users to send recipes to their personal calendar.

Features

MealHub Homepage

Create an account or sign in to create and access meal plans.

MealHub Create Account

Search for recipes based on cuisine preferences, foods to avoid, and dietary restrictions.

MealHub New Plan

Select recipes for a meal plan based on prep time and recommended daily allowances of major macronutrients. View weekly totals of macronutrients based on selected recipes.

MealHub Results

Save meal plans and add recipes to Google calendar for easy access.

MealHub My Meals

Tech

Backend: Python, Flask, PostgreSQL, SQLAlchemy

Frontend: JavaScript, Chart.js, jQuery, AJAX, Jinja, Bootstrap, HTML5, CSS

APIs: Spoonacular, Google Calendar

Installation

MealHub requires Python 2.7 and PostgreSQL to run.

Clone this repository.

$ git clone https://github.com/njgupta23/MealHub.git

Create and activate a virtual environment inside your MealHub directory.

$ virtualenv env
$ source env/bin/activate

Install the dependencies.

$ pip install -r requirements.txt

Get keys to the Spoonacular and Google Calendar APIs.

Store them in a secrets.sh file, similar to this:

export SPOONACULAR_KEY='abc'
export GOOGLE_CLIENT_ID='abc'
export GOOGLE_CLIENT_SECRET='abc'

Create your database.

$ createdb mealhub
$ python model.py

Run the server.

$ python server.py

For Version 2.0

  • Implement in React
  • Make changes to current and past meal plans
  • Select meal plan dates that have not already been used

About the Developer

MealHub was created by Neha Gupta, a doctor turned developer in the Bay Area, CA. Learn more about the developer on LinkedIn.

You can’t perform that action at this time.