Skip to content

The Meal Calculator app is a React Based web app with a Rails API serving as the backend.

Notifications You must be signed in to change notification settings

AnthonyM5/Meal-App-Backend

Repository files navigation

The Meal Calculator app is a React Based web app with a Rails API serving as the backend. It is an attempt to get a deeper dive into the stuff you eat by aggregating data from the Food Data Central API, and allowing users to compile a meal with complete nutritional breakdown of meal components. The individual meal components (listed as ingredients in schema) 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

  • Ruby Version: 2.6.1

  • PostgreSQL

  • Food Data Central API Key

About

The Meal Calculator app is a React Based web app with a Rails API serving as the backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages