Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.73 KB

File metadata and controls

58 lines (38 loc) · 1.73 KB

What's in my Smart Fridge?

Let’s say you’re building an app for your smart fridge, and you want it to be able to tell you which ingredients you have could go into a salad?

Step by step

  1. Fork this repo to your account

  2. Clone down the repo:

        git clone <YOUR_BRANCH_URL>
  3. Open the repo in you terminal:

        cd fridge-exercise
  4. Install the project:

    npm i # shorter version of npm install
  5. Create a solution branch:

    git checkout -b solution
  6. Run the tests:

    npm test # they will fail to run. We haven't written any code yet.
  7. Open VSCode by typing code . or by opening it mannually and navigating to the kata folder/directory

  8. In fridge.js, declare a function called findIngredients. Leave the function body empty for now. Export your function at the bottom of the file with:

    module.exports = findIngredients;
  9. Commit and push your work to github

  10. Look at test/fridge.test.js, what is the first test expecting? - can you write it in pseudocode? Which steps would it take?

  11. Write the code to pass the first test. Keep a terminal window open and run your test by doing npm test or npm t

  12. Things to nose at: