Giter Club home page Giter Club logo

mealkitchen's Introduction

Build Status

Meal Kitchen

Meal Kitchen is a personalized recipe recommendation application that helps you plan and manage your meals for the week.

Team

  • Product Owner: Melanie Gin
  • Scrum Master: Zack Fischmann
  • Development Team Members: Andy Sponring, Mark Tausch, Melanie Gin, Zack Fischmann

Table of Contents

  1. Usage
  2. Requirements
  3. Development
  4. Installing Dependencies
  5. Setting Up PostgreSQL
  6. Starting development
  7. Testing
  8. Deployment
  9. Roadmap
  10. Contributing

Usage

To view Meal Kitchen on production, visit http://meal.kitchen.

You will have to sign up (or log in if you already have an account). Start by creating a meal plan - the link to do so is inside the landing page after login and also in the nav bar. Enter your recipe search parameters. You have the option to request a certain amount of breakfasts, lunches and dinners. Note that you can also select preferred cuisines, allergy restrictions and diet restrictions.

Once you submit your recipe query, the app will query Yummly for recipes, taking into account both your search paramaters AND your flavor preferences which the app has learned from your previous interactions. You can review the recipes that were found and reject ones you don't like - new ones will appear to replace them. Once you're satisfied, give your meal plan a name and save it. On the next page you can choose to create a shopping list which will include all the ingredients of the recipes you selected.

Every time you reject a recipe or save a meal plan, the app gains a better understanding of your taste preferences. The more you use the app, the better the recommendations will be!

Requirements

  • Node 0.12.x
  • Postgresql 9.4.x
  • Grunt-cli 0.1.x
  • Yummly API keys
  • Heroku
  • Travis-CI

Development

Installing Dependencies

From within the root directory:

npm install
npm install -g grunt-cli

npm will install almost all the dependencies you need. Additionally, it will install a local copy of Bower, which is run after npm install, in order to fetch client dependencies. Installing grunt-cli will allow you to accomplish required development tasks (described below).

Setting Up PostgreSQL

To run the app for development, PostgreSQL must be installed with the proper role set up. Follow the directions below to set up the DB.

If Postgres is not Installed

  1. Install brew (http://brew.sh/)
  2. Type command brew update
  3. Type command brew install postgres

Run Postgres

  1. Install Postgres.app http://postgresapp.com/
  2. Open Postgres.app

Set Up Root DB Role

  1. Type command psql to open the Postgres shell
  2. Type command CREATE ROLE root WITH LOGIN;
  3. Type command ALTER ROLE root WITH SUPERUSER;
  4. Type command ALTER ROLE root WITH CREATEROLE;
  5. Type command ALTER ROLE root WITH CREATEDB;
  6. Type command ALTER ROLE root WITH REPLICATION;

Create mealplan database

Almost done! The app requires a database named "mealplan", so run the following:

CREATE DATABASE mealplan;

Starting development

To begin actual development you first need to kick off two processes.

In the root directory run:

grunt serve

This will start the node server using nodemon. Nodemon will monitor your server files for changes and restart the server.

Then open a new Terminal window and run the default Grunt task:

grunt

This task will build all the client files necessary for the app to run. Now you can visit localhost:3000.

Testing

Currently integration tests have been implemented using Mocha and Chai. These test various API endpoints. To test, run

npm test

The test spec is held in /test/serverSpec.js.

Deployment

Deployment is accomplished through Heroku with a PostgreSQL DB add-on. To be deployed to Heroku, the code must pass a Travis-CI build.

When you make a pull request to /Unconditional-Chocolate/mealplan, Travis will initiate a build and run npm test. If the tests pass, and if the changes are merged in, Travis will automatically deploy the new code to Heroku. The changes will be live on prdouction at http://meal.kitchen.

Roadmap

View the project roadmap here.

Contributing

See CONTRIBUTING.md for contribution guidelines.

mealkitchen's People

Contributors

zfisch avatar asponring avatar onelovelyname avatar hackreactor-students avatar

Stargazers

 avatar Stanislav Bogatskiy avatar  avatar  avatar Isaac avatar Phil avatar Jeff Triplett avatar Darrin Dickey avatar Joe Esposito avatar Brittany Martin avatar  avatar Mark Tausch avatar  avatar  avatar

Watchers

Darrin Dickey avatar James Cloos avatar  avatar nkwon avatar

mealkitchen's Issues

Draw up DB Schema design

Show relationships between tables, foreign keys, etc.

Tables:

-Users
id, first, last, email, password + salt, flavor profile (5 flavor columns)

-Likes
recipe id, user id

-Recipes
recipe id, external id (e.g. yummly), source name (API), recipe name, recipe url, recipe imageUrl, flavor profile (5 columns)

-Restrictions
id, restriction name

-User Restrictions
userID, restrictionID

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.