Skip to content

brianpattison/ingredients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ingredients

Calculate the cost of recipes based on the cost of ingredients.

How to Deploy

I suggest using Heroku. They have great docs. It's as simple as cloning this repository and pushing to Heroku.

Authentication

To set up the first user, log into the Rails console and enter:

User.setup

How to Calculate the Cost of Recipes

1. Create ingredients with the along with the cost of the purchase.

Enter the ingredient's name, amount purchased (Ex. 1 gallon), and cost.

2. Create a recipe that uses the ingredients.

Recipes have a name, a yield, and a list of ingredients used. Each ingredient has an amount (Ex. 1 cup), and compatibility is checked first with the purchased amount to make sure the units can be converted for the calculation.

3. Done.

Enjoy!

About

Calculate the cost of a recipe by its ingredients - Small project I did in exchange for beer. :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published