Git Product home page Git Product logo

whats-in-my-food's Introduction

What's in my Food

Versions

Ruby 2.7.2

Rails 5.2.5

Setup

  • Fork and Clone this repo
  • bundle install
  • bundle exec figaro install
  • rails db:{create,migrate}
  • `rails s We'll be using this repo for this mid mod. Follow the set up instructions in the readme. We will be querying the FoodData Central API with an ingredient to retrieve a list of the ten most relevant foods that include that ingredient. First, sign up for an api key here: https://fdc.nal.usda.gov/api-key-signup.html The documentation for the API can be found here: https://fdc.nal.usda.gov/api-guide.html Make sure you take the time to read the documentation carefully. Remember, we want to get a list of foods that contain an ingredient. Complete the following user story. Be sure to test all of your work. Commit your work every 15 minutes. As a user, When I visit "/" And I fill in the search form with "sweet potatoes" (Note: Use the existing search form) And I click "Search" Then I should be on page "/foods" Then I should see a total of the number of items returned by the search. (sweet potatoes should find more than 30,000 results) Then I should see a list of TEN foods that contain the ingredient "sweet potatoes"

And for each of the foods I should see:

  • The food's GTIN/UPC code
  • The food's description
  • The food's Brand Owner
  • The food's ingredients

Delivery: Make a pull request with your name in the title. 2. Submit a response to this survey. If you want deeper feedback on a particular piece of your code, you will need to request that in this submission. turingschool-examples/whats-in-my-food Backend Module 3 Diagnostic Language Ruby

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.