Skip to content

AnthonyM5/NutrientCalculator_Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NutrientCalculator

The NutrientCalculator app is a Javascript web app with a Rails API serving as the backend. It is an attempt to simplify meals by aggregating data from the Food Data Central API and compiling a complete nutritional breakdown of meal components. Ingredients for meals are comprised of 7,000 database records with in-depth nutrient profiles. Meals can be saved and revisted, and ingredients can be removed or added from meals.

Frontend Application

Local Installation

  • Clone this repository, and change into the correct directory. Run bundle install to install all the necessary gems.
  • The database seed will require the following:
  • You will need to fire up your favorite editor and create a .env file to store your API Key (this will be called in the seed file as ENV['FDC_KEY']), via the dotenv gem
  • Run all necessary migrations
    • $ rails db:migrate
  • Seed the Database: (!! Warning this will take a considerable amount of time, there are over 7,000 records each with unique nutrient attributes !!)
    • $ rake db:seed

Requirements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages